Roo/Element.js
[roojs1] / Roo / Element.js
index 9aad26f..91fffea 100644 (file)
@@ -124,6 +124,7 @@ if(opt.anim.isAnimated()){
          * @type String
          */
         defaultUnit : "px",
+        
         /**
          * Sets the element's visibility mode. When setVisible() is called it
          * will use this to determine whether to set the visibility or the display property.
@@ -243,8 +244,6 @@ if(opt.anim.isAnimated()){
 
         // private legacy anim prep
         preanim : function(a, i){
-            Roo.log(a);
-            Roo.log(i);
             return !a[i] ? false : (typeof a[i] == "object" ? a[i]: {duration: a[i+1], callback: a[i+2], easing: a[i+3]});
         },
 
@@ -2087,7 +2086,7 @@ if(opt.anim.isAnimated()){
             
             // we wander
             var z = 0;
-            var dom = this.dom
+            var dom = this.dom;
             while (dom && dom.style) {
                 if (!isNaN(parseInt(dom.style.zIndex))) {
                     z = Math.max(z, parseInt(dom.style.zIndex));
@@ -2533,13 +2532,10 @@ if(opt.anim.isAnimated()){
 
         scrollTo : function(side, value, animate){
             var prop = side.toLowerCase() == "left" ? "scrollLeft" : "scrollTop";
-            Roo.log(prop);
             if(!animate || !A){
                 this.dom[prop] = value;
             }else{
                 var to = prop == "scrollLeft" ? [value, this.dom.scrollTop] : [this.dom.scrollLeft, value];
-                Roo.log(to);
-                Roo.log(this.preanim(arguments, 2));
                 this.anim({scroll: {"to": to}}, this.preanim(arguments, 2), 'scroll');
             }
             return this;