git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Absolutely position animations, damn my twichy fingers for commiting too soon.
[jquery.git]
/
src
/
fx.js
diff --git
a/src/fx.js
b/src/fx.js
index
c45edc1
..
87af7e0
100644
(file)
--- a/
src/fx.js
+++ b/
src/fx.js
@@
-114,6
+114,9
@@
jQuery.fn.extend({
if ( parts[1] )
end = ((parts[1] == "-" ? -1 : 1) * end) + start;
if ( parts[1] )
end = ((parts[1] == "-" ? -1 : 1) * end) + start;
+ // Absolutely position numbers
+ if( typeof val == "number") end = val;
+
e.custom( start, end, unit );
} else
e.custom( start, val, "" );
e.custom( start, end, unit );
} else
e.custom( start, val, "" );
@@
-146,19
+149,6
@@
jQuery.fn.extend({
});
},
});
},
- dequeue: function(type){
- type = type || "fx";
-
- return this.each(function(){
- var q = queue(this, type);
-
- q.shift();
-
- if ( q.length )
- q[0].apply( this );
- });
- },
-
stop: function(){
var timers = jQuery.timers;
stop: function(){
var timers = jQuery.timers;
@@
-171,18
+161,31
@@
jQuery.fn.extend({
});
});
-function queue( elem, type, array ) {
+var queue = function( elem, type, array ) {
if ( !elem )
return;
if ( !elem )
return;
- var queue = jQuery.data( elem, type + "queue" );
+ var q = jQuery.data( elem, type + "queue" );
- if ( !queue || array )
- queue = jQuery.data( elem, type + "queue",
+ if ( !q || array )
+ q = jQuery.data( elem, type + "queue",
array ? jQuery.makeArray(array) : [] );
array ? jQuery.makeArray(array) : [] );
- return queue;
-}
+ return q;
+};
+
+jQuery.fn.dequeue = function(type){
+ type = type || "fx";
+
+ return this.each(function(){
+ var q = queue(this, type);
+
+ q.shift();
+
+ if ( q.length )
+ q[0].apply( this );
+ });
+};
jQuery.extend({
jQuery.extend({