aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2009-03-23 01:55:17 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2009-03-23 01:55:17 +0000
commitf8ef75eb9124ce924be5fb521c783efd5c996e33 (patch)
treee249197bfb42c77b26e068954cbcf70b9c5bb91a /src/data.js
parente06da1724cf05a83e14efa8b854348ac4e4a599a (diff)
downloadjquery-f8ef75eb9124ce924be5fb521c783efd5c996e33.tar.gz
jquery-f8ef75eb9124ce924be5fb521c783efd5c996e33.zip
remove trailing spaces
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/data.js b/src/data.js
index 5f2e5aee7..ac069ceea 100644
--- a/src/data.js
+++ b/src/data.js
@@ -70,16 +70,16 @@ jQuery.extend({
},
queue: function( elem, type, data ) {
if ( elem ){
-
+
type = (type || "fx") + "queue";
-
+
var q = jQuery.data( elem, type );
-
+
if ( !q || jQuery.isArray(data) )
q = jQuery.data( elem, type, jQuery.makeArray(data) );
else if( data )
q.push( data );
-
+
}
return q;
},
@@ -87,10 +87,10 @@ jQuery.extend({
dequeue: function( elem, type ){
var queue = jQuery.queue( elem, type ),
fn = queue.shift();
-
+
if( !type || type === "fx" )
fn = queue[0];
-
+
if( fn !== undefined )
fn.call(elem);
}
@@ -132,7 +132,7 @@ jQuery.fn.extend({
return this.each(function(){
var queue = jQuery.queue( this, type, data );
-
+
if( type == "fx" && queue.length == 1 )
queue[0].call(this);
});