Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state object array with options? #5

Open
magnumjs opened this issue Apr 28, 2015 · 0 comments
Open

state object array with options? #5

magnumjs opened this issue Apr 28, 2015 · 0 comments

Comments

@magnumjs
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant