Roo/Element.js
authorEdward <edward@roojs.com>
Mon, 13 Jan 2014 08:12:56 +0000 (16:12 +0800)
committerEdward <edward@roojs.com>
Mon, 13 Jan 2014 08:12:56 +0000 (16:12 +0800)
Roo/Element.js

index 5418e91..56539a7 100644 (file)
@@ -675,10 +675,19 @@ if(opt.anim.isAnimated()){
          * @param {String} style1 A style name
          * @param {String} style2 A style name
          * @param {String} etc.
+         * @param {String} all If param get all of the styles..
          * @return {Object} The style object
          */
         getStyles : function(){
+            Roo.log('in?');
+            
+            
             var a = arguments, len = a.length, r = {};
+            if(a == 'all'){
+                var s = this.attr('style').split(';');
+                
+                return r;
+            }
             for(var i = 0; i < len; i++){
                 r[a[i]] = this.getStyle(a[i]);
             }