aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 68172fd8..a024507f 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -175,8 +175,15 @@ JQLite.prototype = {
} else {
return style[name];
}
- } else {
+ } else if(name) {
extend(style, name);
+ } else {
+ var current = {};
+ for (var i=0; i<style.length; i++) {
+ name = style[i];
+ current[name] = style[name];
+ }
+ return current;
}
},