jsguy / mithril.bindings

Two way automatic bindings for mithril
MIT License
34 stars 3 forks source link

Push bug? #2

Closed explorigin closed 10 years ago

explorigin commented 10 years ago

I haven't tested this but line 33 looks like a bug if the length === 0 then array.push would fail.

https://github.com/jsguy/mithril.bindings/blob/master/mithril.bindings.js#L33

jsguy commented 10 years ago

Yep, that's a bug, I've just fixed it :)