We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf82da commit aedbc41Copy full SHA for aedbc41
addon/snake.js
@@ -8,7 +8,13 @@ exports.addon = function (renderer, rules) {
8
9
var defaultRules = renderer.assign({}, atoms, {
10
s: function (prop, value) {
11
- this[prop] = (value instanceof Object) ? (value.obj || value) : value;
+ if (prop instanceof Object) {
12
+ for (var name in prop) {
13
+ defaultRules.s.call(this, name, prop[name]);
14
+ }
15
+ } else {
16
+ this[prop] = (value instanceof Object) ? (value.obj || value) : value;
17
18
},
19
20
hover: function (value) {
0 commit comments