mag.js icon indicating copy to clipboard operation
mag.js copied to clipboard

state object array with options?

Open magnumjs opened this issue 10 years ago • 0 comments

I can have an array or I can make an object with poperties, config and events, but I can't seem to make an array with that.

Since objects can have an _text or _HTML attribute perhaps an array attribute too?

state.li = { _array : [1,2,3], _config: .... }

I know I can do greedy to effect all:

state.$li = { _config : ... }

But what if I just want the first one?

I know I can simply add another class or different element matcher to the same node:

state.someClassSameNode = {}

Still it'd be nice maybe to add _array property attribute to matchers.

magnumjs avatar Apr 28 '15 13:04 magnumjs