Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
610149fd
Commit
610149fd
authored
Apr 28, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.
parent
fba42254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
jquery.js
src/jquery/jquery.js
+1
-0
No files found.
src/jquery/jquery.js
View file @
610149fd
...
@@ -1807,6 +1807,7 @@ new function() {
...
@@ -1807,6 +1807,7 @@ new function() {
// Figure out what browser is being used
// Figure out what browser is being used
jQuery
.
browser
=
{
jQuery
.
browser
=
{
version
:
b
.
match
(
/.+
[
xiae
][\/
]([\d
.
]
+
)
/
)[
1
],
safari
:
/webkit/
.
test
(
b
),
safari
:
/webkit/
.
test
(
b
),
opera
:
/opera/
.
test
(
b
),
opera
:
/opera/
.
test
(
b
),
msie
:
/msie/
.
test
(
b
)
&&
!
/opera/
.
test
(
b
),
msie
:
/msie/
.
test
(
b
)
&&
!
/opera/
.
test
(
b
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment