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
f044622b
Commit
f044622b
authored
Sep 06, 2013
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No ticket. Restore checking individual src/**/*.js files by jsHint.
parent
6987220d
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
42 additions
and
32 deletions
+42
-32
.jshintignore
.jshintignore
+2
-0
Gruntfile.js
Gruntfile.js
+6
-0
load.js
src/ajax/load.js
+1
-1
rquery.js
src/ajax/var/rquery.js
+2
-2
cssExpand.js
src/css/var/cssExpand.js
+1
-1
animatedSelector.js
src/effects/animatedSelector.js
+2
-2
amd.js
src/exports/amd.js
+1
-1
rcheckableType.js
src/manipulation/var/rcheckableType.js
+2
-2
offset.js
src/offset.js
+9
-7
outro.js
src/outro.js
+1
-1
selector.js
src/selector.js
+1
-1
class2type.js
src/var/class2type.js
+1
-1
concat.js
src/var/concat.js
+1
-1
deletedIds.js
src/var/deletedIds.js
+1
-1
hasOwn.js
src/var/hasOwn.js
+1
-1
indexOf.js
src/var/indexOf.js
+1
-1
pnum.js
src/var/pnum.js
+2
-2
push.js
src/var/push.js
+1
-1
rnotwhite.js
src/var/rnotwhite.js
+2
-2
slice.js
src/var/slice.js
+1
-1
strundefined.js
src/var/strundefined.js
+1
-1
toString.js
src/var/toString.js
+1
-1
trim.js
src/var/trim.js
+1
-1
No files found.
.jshintignore
View file @
f044622b
src/intro.js
src/outro.js
test/qunit/**
test/data/jquery-1.9.1.ajax_xhr.min.js
test/data/badcall.js
...
...
Gruntfile.js
View file @
f044622b
...
...
@@ -53,6 +53,12 @@ module.exports = function( grunt ) {
}
},
jshint
:
{
src
:
{
src
:
[
"src/**/*.js"
],
options
:
{
jshintrc
:
"src/.jshintrc"
}
},
dist
:
{
src
:
[
"dist/jquery.js"
],
options
:
srcHintOptions
...
...
src/ajax/load.js
View file @
f044622b
...
...
@@ -71,4 +71,4 @@ jQuery.fn.load = function( url, params, callback ) {
return
this
;
};
});
\ No newline at end of file
});
src/ajax/var/rquery.js
View file @
f044622b
define
(
function
()
{
return
/
\?
/
;
});
\ No newline at end of file
return
(
/
\?
/
);
});
src/css/var/cssExpand.js
View file @
f044622b
define
(
function
()
{
return
[
"Top"
,
"Right"
,
"Bottom"
,
"Left"
];
});
\ No newline at end of file
});
src/effects/animatedSelector.js
View file @
f044622b
define
([
"../core"
,
"../selector"
,
"../effects"
,
"../effects"
],
function
(
jQuery
)
{
jQuery
.
expr
.
filters
.
animated
=
function
(
elem
)
{
return
jQuery
.
grep
(
jQuery
.
timers
,
function
(
fn
)
{
return
elem
===
fn
.
elem
;
}).
length
;
};
});
\ No newline at end of file
});
src/exports/amd.js
View file @
f044622b
...
...
@@ -15,4 +15,4 @@ if ( typeof define === "function" && define.amd ) {
});
}
});
\ No newline at end of file
});
src/manipulation/var/rcheckableType.js
View file @
f044622b
define
(
function
()
{
return
/^
(?:
checkbox|radio
)
$/i
;
});
\ No newline at end of file
return
(
/^
(?:
checkbox|radio
)
$/i
);
});
src/offset.js
View file @
f044622b
...
...
@@ -47,19 +47,21 @@ jQuery.fn.offset = function( options ) {
jQuery
.
offset
=
{
setOffset
:
function
(
elem
,
options
,
i
)
{
var
position
=
jQuery
.
css
(
elem
,
"position"
);
var
curPosition
,
curLeft
,
curCSSTop
,
curTop
,
curOffset
,
curCSSLeft
,
calculatePosition
,
position
=
jQuery
.
css
(
elem
,
"position"
),
curElem
=
jQuery
(
elem
),
props
=
{};
// set position first, in-case top/left are set even on static elem
if
(
position
===
"static"
)
{
elem
.
style
.
position
=
"relative"
;
}
var
curElem
=
jQuery
(
elem
),
curOffset
=
curElem
.
offset
(),
curCSSTop
=
jQuery
.
css
(
elem
,
"top"
),
curCSSLeft
=
jQuery
.
css
(
elem
,
"left"
),
calculatePosition
=
(
position
===
"absolute"
||
position
===
"fixed"
)
&&
jQuery
.
inArray
(
"auto"
,
[
curCSSTop
,
curCSSLeft
])
>
-
1
,
props
=
{},
curPosition
=
{},
curTop
,
curLeft
;
curOffset
=
curElem
.
offset
();
curCSSTop
=
jQuery
.
css
(
elem
,
"top"
);
curCSSLeft
=
jQuery
.
css
(
elem
,
"left"
);
calculatePosition
=
(
position
===
"absolute"
||
position
===
"fixed"
)
&&
jQuery
.
inArray
(
"auto"
,
[
curCSSTop
,
curCSSLeft
])
>
-
1
;
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if
(
calculatePosition
)
{
...
...
src/outro.js
View file @
f044622b
}));
\ No newline at end of file
}));
src/selector.js
View file @
f044622b
define
([
"./selector-sizzle"
]);
\ No newline at end of file
define
([
"./selector-sizzle"
]);
src/var/class2type.js
View file @
f044622b
define
(
function
()
{
return
{};
});
\ No newline at end of file
});
src/var/concat.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./deletedIds"
],
function
(
deletedIds
)
{
return
deletedIds
.
concat
;
});
\ No newline at end of file
});
src/var/deletedIds.js
View file @
f044622b
define
(
function
()
{
return
[];
});
\ No newline at end of file
});
src/var/hasOwn.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./class2type"
],
function
(
class2type
)
{
return
class2type
.
hasOwnProperty
;
});
\ No newline at end of file
});
src/var/indexOf.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./deletedIds"
],
function
(
deletedIds
)
{
return
deletedIds
.
indexOf
;
});
\ No newline at end of file
});
src/var/pnum.js
View file @
f044622b
define
(
function
()
{
return
/
[
+-
]?(?:\d
*
\.
|
)\d
+
(?:[
eE
][
+-
]?\d
+|
)
/
.
source
;
});
\ No newline at end of file
return
(
/
[
+-
]?(?:\d
*
\.
|
)\d
+
(?:[
eE
][
+-
]?\d
+|
)
/
).
source
;
});
src/var/push.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./deletedIds"
],
function
(
deletedIds
)
{
return
deletedIds
.
push
;
});
\ No newline at end of file
});
src/var/rnotwhite.js
View file @
f044622b
define
(
function
()
{
return
/
\S
+/g
;
});
\ No newline at end of file
return
(
/
\S
+/g
);
});
src/var/slice.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./deletedIds"
],
function
(
deletedIds
)
{
return
deletedIds
.
slice
;
});
\ No newline at end of file
});
src/var/strundefined.js
View file @
f044622b
define
(
function
()
{
return
typeof
undefined
;
});
\ No newline at end of file
});
src/var/toString.js
View file @
f044622b
...
...
@@ -2,4 +2,4 @@ define([
"./class2type"
],
function
(
class2type
)
{
return
class2type
.
toString
;
});
\ No newline at end of file
});
src/var/trim.js
View file @
f044622b
define
(
function
()
{
return
""
.
trim
;
});
\ No newline at end of file
});
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