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
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
38 additions
and
28 deletions
+38
-28
.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
No files found.
.jshintignore
View file @
f044622b
src/intro.js
src/outro.js
test/qunit/**
test/qunit/**
test/data/jquery-1.9.1.ajax_xhr.min.js
test/data/jquery-1.9.1.ajax_xhr.min.js
test/data/badcall.js
test/data/badcall.js
...
...
Gruntfile.js
View file @
f044622b
...
@@ -53,6 +53,12 @@ module.exports = function( grunt ) {
...
@@ -53,6 +53,12 @@ module.exports = function( grunt ) {
}
}
},
},
jshint
:
{
jshint
:
{
src
:
{
src
:
[
"src/**/*.js"
],
options
:
{
jshintrc
:
"src/.jshintrc"
}
},
dist
:
{
dist
:
{
src
:
[
"dist/jquery.js"
],
src
:
[
"dist/jquery.js"
],
options
:
srcHintOptions
options
:
srcHintOptions
...
...
src/ajax/load.js
View file @
f044622b
src/ajax/var/rquery.js
View file @
f044622b
define
(
function
()
{
define
(
function
()
{
return
/
\?
/
;
return
(
/
\?
/
)
;
});
});
src/css/var/cssExpand.js
View file @
f044622b
src/effects/animatedSelector.js
View file @
f044622b
define
([
define
([
"../core"
,
"../core"
,
"../selector"
,
"../selector"
,
"../effects"
,
"../effects"
],
function
(
jQuery
)
{
],
function
(
jQuery
)
{
jQuery
.
expr
.
filters
.
animated
=
function
(
elem
)
{
jQuery
.
expr
.
filters
.
animated
=
function
(
elem
)
{
return
jQuery
.
grep
(
jQuery
.
timers
,
function
(
fn
)
{
return
jQuery
.
grep
(
jQuery
.
timers
,
function
(
fn
)
{
...
...
src/exports/amd.js
View file @
f044622b
src/manipulation/var/rcheckableType.js
View file @
f044622b
define
(
function
()
{
define
(
function
()
{
return
/^
(?:
checkbox|radio
)
$/i
;
return
(
/^
(?:
checkbox|radio
)
$/i
)
;
});
});
src/offset.js
View file @
f044622b
...
@@ -47,19 +47,21 @@ jQuery.fn.offset = function( options ) {
...
@@ -47,19 +47,21 @@ jQuery.fn.offset = function( options ) {
jQuery
.
offset
=
{
jQuery
.
offset
=
{
setOffset
:
function
(
elem
,
options
,
i
)
{
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
// set position first, in-case top/left are set even on static elem
if
(
position
===
"static"
)
{
if
(
position
===
"static"
)
{
elem
.
style
.
position
=
"relative"
;
elem
.
style
.
position
=
"relative"
;
}
}
var
curElem
=
jQuery
(
elem
),
curOffset
=
curElem
.
offset
();
curOffset
=
curElem
.
offset
(),
curCSSTop
=
jQuery
.
css
(
elem
,
"top"
);
curCSSTop
=
jQuery
.
css
(
elem
,
"top"
),
curCSSLeft
=
jQuery
.
css
(
elem
,
"left"
);
curCSSLeft
=
jQuery
.
css
(
elem
,
"left"
),
calculatePosition
=
(
position
===
"absolute"
||
position
===
"fixed"
)
&&
calculatePosition
=
(
position
===
"absolute"
||
position
===
"fixed"
)
&&
jQuery
.
inArray
(
"auto"
,
[
curCSSTop
,
curCSSLeft
])
>
-
1
,
jQuery
.
inArray
(
"auto"
,
[
curCSSTop
,
curCSSLeft
])
>
-
1
;
props
=
{},
curPosition
=
{},
curTop
,
curLeft
;
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
if
(
calculatePosition
)
{
if
(
calculatePosition
)
{
...
...
src/outro.js
View file @
f044622b
src/selector.js
View file @
f044622b
src/var/class2type.js
View file @
f044622b
src/var/concat.js
View file @
f044622b
src/var/deletedIds.js
View file @
f044622b
src/var/hasOwn.js
View file @
f044622b
src/var/indexOf.js
View file @
f044622b
src/var/pnum.js
View file @
f044622b
define
(
function
()
{
define
(
function
()
{
return
/
[
+-
]?(?:\d
*
\.
|
)\d
+
(?:[
eE
][
+-
]?\d
+|
)
/
.
source
;
return
(
/
[
+-
]?(?:\d
*
\.
|
)\d
+
(?:[
eE
][
+-
]?\d
+|
)
/
)
.
source
;
});
});
src/var/push.js
View file @
f044622b
src/var/rnotwhite.js
View file @
f044622b
define
(
function
()
{
define
(
function
()
{
return
/
\S
+/g
;
return
(
/
\S
+/g
)
;
});
});
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