Fix some whitespace issues.
This commit is contained in:
parent
12c0e1a692
commit
6b08d88d04
7 changed files with 19 additions and 19 deletions
|
@ -302,7 +302,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
jQuery.fn.init.prototype = jQuery.fn;
|
jQuery.fn.init.prototype = jQuery.fn;
|
||||||
|
|
||||||
jQuery.extend = jQuery.fn.extend = function() {
|
jQuery.extend = jQuery.fn.extend = function() {
|
||||||
var options, name, src, copy, copyIsArray, clone,
|
var options, name, src, copy, copyIsArray, clone,
|
||||||
target = arguments[0] || {},
|
target = arguments[0] || {},
|
||||||
i = 1,
|
i = 1,
|
||||||
length = arguments.length,
|
length = arguments.length,
|
||||||
|
|
|
@ -33,7 +33,7 @@ jQuery.event = {
|
||||||
handler = returnFalse;
|
handler = returnFalse;
|
||||||
} else if ( !handler ) {
|
} else if ( !handler ) {
|
||||||
// Fixes bug #7229. Fix recommended by jdalton
|
// Fixes bug #7229. Fix recommended by jdalton
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleObjIn, handleObj;
|
var handleObjIn, handleObj;
|
||||||
|
|
|
@ -275,7 +275,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
|
||||||
if ( win ) {
|
if ( win ) {
|
||||||
win.scrollTo(
|
win.scrollTo(
|
||||||
!i ? val : jQuery(win).scrollLeft(),
|
!i ? val : jQuery(win).scrollLeft(),
|
||||||
i ? val : jQuery(win).scrollTop()
|
i ? val : jQuery(win).scrollTop()
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -204,11 +204,11 @@ jQuery.each({
|
||||||
}, function( name, fn ) {
|
}, function( name, fn ) {
|
||||||
jQuery.fn[ name ] = function( until, selector ) {
|
jQuery.fn[ name ] = function( until, selector ) {
|
||||||
var ret = jQuery.map( this, fn, until ),
|
var ret = jQuery.map( this, fn, until ),
|
||||||
// The variable 'args' was introduced in
|
// The variable 'args' was introduced in
|
||||||
// https://github.com/jquery/jquery/commit/52a0238
|
// https://github.com/jquery/jquery/commit/52a0238
|
||||||
// to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
|
// to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
|
||||||
// http://code.google.com/p/v8/issues/detail?id=1050
|
// http://code.google.com/p/v8/issues/detail?id=1050
|
||||||
args = slice.call(arguments);
|
args = slice.call(arguments);
|
||||||
|
|
||||||
if ( !runtil.test( name ) ) {
|
if ( !runtil.test( name ) ) {
|
||||||
selector = until;
|
selector = until;
|
||||||
|
|
|
@ -615,18 +615,18 @@ test("unbind(type)", function() {
|
||||||
|
|
||||||
message = "unbind many with function";
|
message = "unbind many with function";
|
||||||
$elem.bind('error1 error2',error)
|
$elem.bind('error1 error2',error)
|
||||||
.unbind('error1 error2', error )
|
.unbind('error1 error2', error )
|
||||||
.trigger('error1').triggerHandler('error2');
|
.trigger('error1').triggerHandler('error2');
|
||||||
|
|
||||||
message = "unbind many"; // #3538
|
message = "unbind many"; // #3538
|
||||||
$elem.bind('error1 error2',error)
|
$elem.bind('error1 error2',error)
|
||||||
.unbind('error1 error2')
|
.unbind('error1 error2')
|
||||||
.trigger('error1').triggerHandler('error2');
|
.trigger('error1').triggerHandler('error2');
|
||||||
|
|
||||||
message = "unbind without a type or handler";
|
message = "unbind without a type or handler";
|
||||||
$elem.bind("error1 error2.test",error)
|
$elem.bind("error1 error2.test",error)
|
||||||
.unbind()
|
.unbind()
|
||||||
.trigger("error1").triggerHandler("error2");
|
.trigger("error1").triggerHandler("error2");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("unbind(eventObject)", function() {
|
test("unbind(eventObject)", function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue