persvr / rql

Resource Query Language
http://www.persvr.org/
267 stars 49 forks source link

"optional" first argument #20

Closed dvv closed 13 years ago

dvv commented 13 years ago

Hi!

limit(,10) --> {name: 'limit',args:[10]} limit(,10,20) --> {name: 'limit',args:[10,20]} limit(,,10,20) --> {name: 'limit',args:['',10,20]}

Seems the very first "argument" is swallowed.

Please, consider fixing, unless this is a feature.

TIA, --Vladimir

dvv commented 13 years ago

If it's a bug, the fix could be as in https://github.com/dvv/underscore-data/blob/master/underscore-data.js#L219 - 226. Best regards, --Vladimir