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
b561f5ab
Commit
b561f5ab
authored
Oct 06, 2013
by
Oleg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some code style inconsistencies
parent
3bcd04f5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
13 deletions
+10
-13
css.js
src/css.js
+1
-4
getStyles.js
src/css/var/getStyles.js
+1
-1
rmargin.js
src/css/var/rmargin.js
+1
-1
rnumnonpx.js
src/css/var/rnumnonpx.js
+1
-1
intro.js
src/intro.js
+2
-2
support.js
src/manipulation/support.js
+2
-2
offset.js
src/offset.js
+1
-1
selector-sizzle.js
src/selector-sizzle.js
+1
-1
No files found.
src/css.js
View file @
b561f5ab
...
@@ -60,9 +60,6 @@ function vendorPropName( style, name ) {
...
@@ -60,9 +60,6 @@ function vendorPropName( style, name ) {
return
origName
;
return
origName
;
}
}
function
setPositiveNumber
(
elem
,
value
,
subtract
)
{
function
setPositiveNumber
(
elem
,
value
,
subtract
)
{
var
matches
=
rnumsplit
.
exec
(
value
);
var
matches
=
rnumsplit
.
exec
(
value
);
return
matches
?
return
matches
?
...
@@ -371,7 +368,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {
...
@@ -371,7 +368,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {
// Support: Android 2.3
// Support: Android 2.3
jQuery
.
cssHooks
.
marginRight
=
addGetHookIf
(
support
.
reliableMarginRight
,
jQuery
.
cssHooks
.
marginRight
=
addGetHookIf
(
support
.
reliableMarginRight
,
function
(
elem
,
computed
)
{
function
(
elem
,
computed
)
{
if
(
computed
)
{
if
(
computed
)
{
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
// Work around by temporarily setting element display to inline-block
// Work around by temporarily setting element display to inline-block
...
...
src/css/var/getStyles.js
View file @
b561f5ab
...
@@ -2,4 +2,4 @@ define(function() {
...
@@ -2,4 +2,4 @@ define(function() {
return
function
(
elem
)
{
return
function
(
elem
)
{
return
elem
.
ownerDocument
.
defaultView
.
getComputedStyle
(
elem
,
null
);
return
elem
.
ownerDocument
.
defaultView
.
getComputedStyle
(
elem
,
null
);
};
};
});
});
\ No newline at end of file
src/css/var/rmargin.js
View file @
b561f5ab
define
(
function
()
{
define
(
function
()
{
return
(
/^margin/
);
return
(
/^margin/
);
});
});
\ No newline at end of file
src/css/var/rnumnonpx.js
View file @
b561f5ab
...
@@ -2,4 +2,4 @@ define([
...
@@ -2,4 +2,4 @@ define([
"../../var/pnum"
"../../var/pnum"
],
function
(
pnum
)
{
],
function
(
pnum
)
{
return
new
RegExp
(
"^("
+
pnum
+
")(?!px)[a-z%]+$"
,
"i"
);
return
new
RegExp
(
"^("
+
pnum
+
")(?!px)[a-z%]+$"
,
"i"
);
});
});
\ No newline at end of file
src/intro.js
View file @
b561f5ab
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Date: @DATE
* Date: @DATE
*/
*/
(
function
(
window
,
factory
)
{
(
function
(
window
,
factory
)
{
if
(
typeof
module
===
"object"
&&
typeof
module
.
exports
===
"object"
)
{
if
(
typeof
module
===
"object"
&&
typeof
module
.
exports
===
"object"
)
{
// Expose a jQuery-making factory as module.exports in loaders that implement the Node
// Expose a jQuery-making factory as module.exports in loaders that implement the Node
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
}
}
// Pass this, window may not be defined yet
// Pass this, window may not be defined yet
}(
this
,
function
(
window
)
{
}(
this
,
function
(
window
)
{
// Can't do this because several apps including ASP.NET trace
// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if
// the stack via arguments.caller.callee and Firefox dies if
...
...
src/manipulation/support.js
View file @
b561f5ab
define
([
define
([
"../var/support"
"../var/support"
],
function
(
support
){
],
function
(
support
)
{
(
function
()
{
(
function
()
{
var
input
,
var
input
,
fragment
=
document
.
createDocumentFragment
(),
fragment
=
document
.
createDocumentFragment
(),
div
=
fragment
.
appendChild
(
document
.
createElement
(
"div"
)
);
div
=
fragment
.
appendChild
(
document
.
createElement
(
"div"
)
);
...
...
src/offset.js
View file @
b561f5ab
...
@@ -188,7 +188,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
...
@@ -188,7 +188,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
// rather than make the css module depend on the offset module, we just check for it here
// rather than make the css module depend on the offset module, we just check for it here
jQuery
.
each
(
[
"top"
,
"left"
],
function
(
i
,
prop
)
{
jQuery
.
each
(
[
"top"
,
"left"
],
function
(
i
,
prop
)
{
jQuery
.
cssHooks
[
prop
]
=
addGetHookIf
(
support
.
pixelPosition
,
jQuery
.
cssHooks
[
prop
]
=
addGetHookIf
(
support
.
pixelPosition
,
function
(
elem
,
computed
)
{
function
(
elem
,
computed
)
{
if
(
computed
)
{
if
(
computed
)
{
computed
=
curCSS
(
elem
,
prop
);
computed
=
curCSS
(
elem
,
prop
);
// if curCSS returns percentage, fallback to offset
// if curCSS returns percentage, fallback to offset
...
...
src/selector-sizzle.js
View file @
b561f5ab
define
([
define
([
"./core"
,
"./core"
,
"sizzle"
"sizzle"
],
function
(
jQuery
,
Sizzle
)
{
],
function
(
jQuery
,
Sizzle
)
{
jQuery
.
find
=
Sizzle
;
jQuery
.
find
=
Sizzle
;
jQuery
.
expr
=
Sizzle
.
selectors
;
jQuery
.
expr
=
Sizzle
.
selectors
;
...
...
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