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
eb9cbfca
Commit
eb9cbfca
authored
Aug 21, 2013
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No ticket. Update support comments to reflect current state of affairs.
parent
0ed397d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
+5
-6
support.js
src/attributes/support.js
+1
-1
core.js
src/core.js
+1
-1
css.js
src/css.js
+2
-2
support.js
src/manipulation/support.js
+1
-1
core.js
test/unit/core.js
+0
-1
No files found.
src/attributes/support.js
View file @
eb9cbfca
...
@@ -9,7 +9,7 @@ define([
...
@@ -9,7 +9,7 @@ define([
input
.
type
=
"checkbox"
;
input
.
type
=
"checkbox"
;
// Support:
Safari 5.1,
iOS 5.1, Android 4.x, Android 2.3
// Support: iOS 5.1, Android 4.x, Android 2.3
// Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
// Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
support
.
checkOn
=
input
.
value
!==
""
;
support
.
checkOn
=
input
.
value
!==
""
;
...
...
src/core.js
View file @
eb9cbfca
...
@@ -342,7 +342,7 @@ jQuery.extend({
...
@@ -342,7 +342,7 @@ jQuery.extend({
if
(
obj
==
null
)
{
if
(
obj
==
null
)
{
return
String
(
obj
);
return
String
(
obj
);
}
}
// Support:
Safari <= 5.1
(functionish RegExp)
// Support:
Android < 4.0, iOS < 6
(functionish RegExp)
return
typeof
obj
===
"object"
||
typeof
obj
===
"function"
?
return
typeof
obj
===
"object"
||
typeof
obj
===
"function"
?
class2type
[
toString
.
call
(
obj
)
]
||
"object"
:
class2type
[
toString
.
call
(
obj
)
]
||
"object"
:
typeof
obj
;
typeof
obj
;
...
...
src/css.js
View file @
eb9cbfca
...
@@ -303,9 +303,9 @@ curCSS = function( elem, name, _computed ) {
...
@@ -303,9 +303,9 @@ curCSS = function( elem, name, _computed ) {
ret
=
jQuery
.
style
(
elem
,
name
);
ret
=
jQuery
.
style
(
elem
,
name
);
}
}
// Support:
Safari 5.1
// Support:
iOS < 6
// A tribute to the "awesome hack by Dean Edwards"
// A tribute to the "awesome hack by Dean Edwards"
//
Safari 5.1.7
(at least) returns percentage for a larger set of values, but width seems to be reliably pixels
//
iOS < 6
(at least) returns percentage for a larger set of values, but width seems to be reliably pixels
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
if
(
rnumnonpx
.
test
(
ret
)
&&
rmargin
.
test
(
name
)
)
{
if
(
rnumnonpx
.
test
(
ret
)
&&
rmargin
.
test
(
name
)
)
{
...
...
src/manipulation/support.js
View file @
eb9cbfca
...
@@ -19,7 +19,7 @@ define([
...
@@ -19,7 +19,7 @@ define([
fragment
.
appendChild
(
input
);
fragment
.
appendChild
(
input
);
// Support:
Safari
5.1, Android 4.x, Android 2.3
// Support:
iOS
5.1, Android 4.x, Android 2.3
// old WebKit doesn't clone checked state correctly in fragments
// old WebKit doesn't clone checked state correctly in fragments
support
.
checkClone
=
fragment
.
cloneNode
(
true
).
cloneNode
(
true
).
lastChild
.
checked
;
support
.
checkClone
=
fragment
.
cloneNode
(
true
).
cloneNode
(
true
).
lastChild
.
checked
;
})();
})();
...
...
test/unit/core.js
View file @
eb9cbfca
...
@@ -383,7 +383,6 @@ test("isFunction", function() {
...
@@ -383,7 +383,6 @@ test("isFunction", function() {
ok
(
!
jQuery
.
isFunction
(
0
),
"0 Value"
);
ok
(
!
jQuery
.
isFunction
(
0
),
"0 Value"
);
// Check built-ins
// Check built-ins
// Safari uses "(Internal Function)"
ok
(
jQuery
.
isFunction
(
String
),
"String Function("
+
String
+
")"
);
ok
(
jQuery
.
isFunction
(
String
),
"String Function("
+
String
+
")"
);
ok
(
jQuery
.
isFunction
(
Array
),
"Array Function("
+
Array
+
")"
);
ok
(
jQuery
.
isFunction
(
Array
),
"Array Function("
+
Array
+
")"
);
ok
(
jQuery
.
isFunction
(
Object
),
"Object Function("
+
Object
+
")"
);
ok
(
jQuery
.
isFunction
(
Object
),
"Object Function("
+
Object
+
")"
);
...
...
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