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
978c0655
Commit
978c0655
authored
Apr 12, 2011
by
John Resig
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sub_Naming' of
https://github.com/timmywil/jquery
into timmywil-Sub_Naming
Conflicts: src/core.js src/css.js src/event.js
parents
e7787cd0
82626799
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
core.js
src/core.js
+18
-18
css.js
src/css.js
+5
-5
event.js
src/event.js
+1
-1
No files found.
src/core.js
View file @
978c0655
...
@@ -436,7 +436,7 @@ jQuery.extend({
...
@@ -436,7 +436,7 @@ jQuery.extend({
}
else
if
(
document
.
attachEvent
)
{
}
else
if
(
document
.
attachEvent
)
{
// ensure firing before onload,
// ensure firing before onload,
// maybe late but safe also for iframes
// maybe late but safe also for iframes
document
.
attachEvent
(
"onreadystatechange"
,
DOMContentLoaded
);
document
.
attachEvent
(
"onreadystatechange"
,
DOMContentLoaded
);
// A fallback to window.onload, that will always work
// A fallback to window.onload, that will always work
window
.
attachEvent
(
"onload"
,
jQuery
.
ready
);
window
.
attachEvent
(
"onload"
,
jQuery
.
ready
);
...
@@ -587,7 +587,7 @@ jQuery.extend({
...
@@ -587,7 +587,7 @@ jQuery.extend({
each
:
function
(
object
,
callback
,
args
)
{
each
:
function
(
object
,
callback
,
args
)
{
var
name
,
i
=
0
,
var
name
,
i
=
0
,
length
=
object
.
length
,
length
=
object
.
length
,
isObj
=
length
===
undefined
||
jQuery
.
isFunction
(
object
);
isObj
=
length
===
undefined
||
jQuery
.
isFunction
(
object
);
if
(
args
)
{
if
(
args
)
{
if
(
isObj
)
{
if
(
isObj
)
{
...
@@ -648,7 +648,7 @@ jQuery.extend({
...
@@ -648,7 +648,7 @@ jQuery.extend({
// The extra typeof function check is to prevent crashes
// The extra typeof function check is to prevent crashes
// in Safari 2 (See: #3039)
// in Safari 2 (See: #3039)
// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
var
type
=
jQuery
.
type
(
array
);
var
type
=
jQuery
.
type
(
array
);
if
(
array
.
length
==
null
||
type
===
"string"
||
type
===
"function"
||
type
===
"regexp"
||
jQuery
.
isWindow
(
array
)
)
{
if
(
array
.
length
==
null
||
type
===
"string"
||
type
===
"function"
||
type
===
"regexp"
||
jQuery
.
isWindow
(
array
)
)
{
push
.
call
(
ret
,
array
);
push
.
call
(
ret
,
array
);
...
@@ -844,24 +844,24 @@ jQuery.extend({
...
@@ -844,24 +844,24 @@ jQuery.extend({
},
},
sub
:
function
()
{
sub
:
function
()
{
function
jQuerySub
class
(
selector
,
context
)
{
function
jQuerySub
(
selector
,
context
)
{
return
new
jQuerySub
class
.
fn
.
init
(
selector
,
context
);
return
new
jQuerySub
.
fn
.
init
(
selector
,
context
);
}
}
jQuery
.
extend
(
true
,
jQuerySub
class
,
this
);
jQuery
.
extend
(
true
,
jQuerySub
,
this
);
jQuerySub
class
.
superclass
=
this
;
jQuerySub
.
superclass
=
this
;
jQuerySub
class
.
fn
=
jQuerySubclass
.
prototype
=
this
();
jQuerySub
.
fn
=
jQuerySub
.
prototype
=
this
();
jQuerySub
class
.
fn
.
constructor
=
jQuerySubclass
;
jQuerySub
.
fn
.
constructor
=
jQuerySub
;
jQuerySub
class
.
subclass
=
this
.
subclass
;
jQuerySub
.
sub
=
this
.
sub
;
jQuerySub
class
.
fn
.
init
=
function
init
(
selector
,
context
)
{
jQuerySub
.
fn
.
init
=
function
init
(
selector
,
context
)
{
if
(
context
&&
context
instanceof
jQuery
&&
!
(
context
instanceof
jQuerySub
class
)
)
{
if
(
context
&&
context
instanceof
jQuery
&&
!
(
context
instanceof
jQuerySub
)
)
{
context
=
jQuerySub
class
(
context
);
context
=
jQuerySub
(
context
);
}
}
return
jQuery
.
fn
.
init
.
call
(
this
,
selector
,
context
,
rootjQuerySub
class
);
return
jQuery
.
fn
.
init
.
call
(
this
,
selector
,
context
,
rootjQuerySub
);
};
};
jQuerySub
class
.
fn
.
init
.
prototype
=
jQuerySubclass
.
fn
;
jQuerySub
.
fn
.
init
.
prototype
=
jQuerySub
.
fn
;
var
rootjQuerySub
class
=
jQuerySubclass
(
document
);
var
rootjQuerySub
=
jQuerySub
(
document
);
return
jQuerySub
class
;
return
jQuerySub
;
},
},
browser
:
{}
browser
:
{}
...
...
src/css.js
View file @
978c0655
...
@@ -231,8 +231,8 @@ if ( !jQuery.support.opacity ) {
...
@@ -231,8 +231,8 @@ if ( !jQuery.support.opacity ) {
jQuery
.
cssHooks
.
opacity
=
{
jQuery
.
cssHooks
.
opacity
=
{
get
:
function
(
elem
,
computed
)
{
get
:
function
(
elem
,
computed
)
{
// IE uses filters for opacity
// IE uses filters for opacity
return
ropacity
.
test
(
(
computed
&&
elem
.
currentStyle
?
elem
.
currentStyle
.
filter
:
elem
.
style
.
filter
)
||
""
)
?
return
ropacity
.
test
(
(
computed
&&
elem
.
currentStyle
?
elem
.
currentStyle
.
filter
:
elem
.
style
.
filter
)
||
""
)
?
(
parseFloat
(
RegExp
.
$1
)
/
100
)
+
""
:
(
parseFloat
(
RegExp
.
$1
)
/
100
)
+
""
:
computed
?
"1"
:
""
;
computed
?
"1"
:
""
;
},
},
...
@@ -245,13 +245,13 @@ if ( !jQuery.support.opacity ) {
...
@@ -245,13 +245,13 @@ if ( !jQuery.support.opacity ) {
style
.
zoom
=
1
;
style
.
zoom
=
1
;
// Set the alpha filter to set the opacity
// Set the alpha filter to set the opacity
var
opacity
=
jQuery
.
isNaN
(
value
)
?
var
opacity
=
jQuery
.
isNaN
(
value
)
?
""
:
""
:
"alpha(opacity="
+
value
*
100
+
")"
,
"alpha(opacity="
+
value
*
100
+
")"
,
filter
=
currentStyle
&&
currentStyle
.
filter
||
style
.
filter
||
""
;
filter
=
currentStyle
&&
currentStyle
.
filter
||
style
.
filter
||
""
;
style
.
filter
=
ralpha
.
test
(
filter
)
?
style
.
filter
=
ralpha
.
test
(
filter
)
?
filter
.
replace
(
ralpha
,
opacity
)
:
filter
.
replace
(
ralpha
,
opacity
)
:
filter
+
" "
+
opacity
;
filter
+
" "
+
opacity
;
}
}
};
};
...
...
src/event.js
View file @
978c0655
...
@@ -275,7 +275,7 @@ jQuery.event = {
...
@@ -275,7 +275,7 @@ jQuery.event = {
"changeData"
:
true
"changeData"
:
true
},
},
trigger
:
function
(
event
,
data
,
elem
)
{
trigger
:
function
(
event
,
data
,
elem
,
bubbling
/* For Internal Use Only */
)
{
// Event object or event type
// Event object or event type
var
type
=
event
.
type
||
event
,
var
type
=
event
.
type
||
event
,
namespaces
=
[],
namespaces
=
[],
...
...
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