git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4986837
)
Added some final global variable tweaks - no more namespace leaking!
author
John Resig
<jeresig@gmail.com>
Wed, 17 May 2006 03:55:50 +0000
(
03:55
+0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 17 May 2006 03:55:50 +0000
(
03:55
+0000)
fx/fx.js
patch
|
blob
|
history
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/fx/fx.js
b/fx/fx.js
index
3eb8945
..
74c2c8a
100644
(file)
--- a/
fx/fx.js
+++ b/
fx/fx.js
@@
-87,6
+87,8
@@
$.setAuto = function(e,p) {
$.fx = function(el,op,ty,tz){
var z = this;
$.fx = function(el,op,ty,tz){
var z = this;
+ z.el = el.constructor==String?document.getElementById(el):el;
+ var y = z.el.style;
z.a = function(){z.el.style[ty]=z.now+z.o.unit;};
z.max = function(){return z.el["io"+ty]||z.el["natural"+tz]||z.el["scroll"+tz]||z.cur();};
z.cur = function(){return parseInt($.getCSS(z.el,ty),10);};
z.a = function(){z.el.style[ty]=z.now+z.o.unit;};
z.max = function(){return z.el["io"+ty]||z.el["natural"+tz]||z.el["scroll"+tz]||z.cur();};
z.cur = function(){return parseInt($.getCSS(z.el,ty),10);};
@@
-96,8
+98,6
@@
$.fx = function(el,op,ty,tz){
z.toggle = function(){if(z.cur()>0){z.hide();}else{z.show();}};
z.modify = function(a){z.custom(z.cur(),z.cur()+a);};
z.clear = function(){clearInterval(z.timer);z.timer=null;};
z.toggle = function(){if(z.cur()>0){z.hide();}else{z.show();}};
z.modify = function(a){z.custom(z.cur(),z.cur()+a);};
z.clear = function(){clearInterval(z.timer);z.timer=null;};
- z.el = el.constructor==String?document.getElementById(el):el;
- var y = z.el.style;
z.oo = y.overflow;
y.overflow = "hidden";
z.o = {
z.oo = y.overflow;
y.overflow = "hidden";
z.o = {
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
2e29fa5
..
179cd29
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-9,6
+9,9
@@
* $Rev$
*/
* $Rev$
*/
+/* For JSLint (jslint.com): */
+/*extern ActiveXObject Prototype setTimeout setInterval clearInterval document window XMLHttpRequest navigator*/
+
function $(a,c) {
var $a = a || $.context || document;
var $c = c && c.$jquery && c.get(0) || c;
function $(a,c) {
var $a = a || $.context || document;
var $c = c && c.$jquery && c.get(0) || c;