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

eliminate need for using square brackets #3

Open
bosky101 opened this issue Sep 4, 2011 · 0 comments
Open

eliminate need for using square brackets #3

bosky101 opened this issue Sep 4, 2011 · 0 comments
Assignees

Comments

@bosky101
Copy link
Owner

bosky101 commented Sep 4, 2011


// your favourite micro-blogging site
var json1 = { 
    "id":"bosky101", 
    "following": [ 
    { name: {first:"foo"}},
    { name:{first:"bar"}}
    ] 
};

// as of 0.0.2
_json(json1).$('following name'); // will not return [ {first:"foo"}, {first:"bar"}]

In other words _json until 0.0.2, does not parse lists since there then will be N results that are mapped, that need to be reduced.

This will be fixed in 0.0.3, because of which _json is only suggested for use in production from 0.0.3 onwards

@ghost ghost assigned bosky101 Sep 4, 2011
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