gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Issue #130: Properties with dashes in their names #132

Open Mad-Chemist opened 8 years ago

Mad-Chemist commented 8 years ago

Everything appears to work as it did previously, but this modification now handles the use case where the declarations variable could have a dash in it (EX: "value:background-color"). Additionally the declarations variable is passed into the function, to ensure it's defined.

This pull request includes the type conversion that happened automatically by creating a function using the function constructor.

Mad-Chemist commented 8 years ago

Ah another case I don't think I have covered: Having an object passed in splits it irregularly. Playing around with trying to keep the type conversion behind the scenes without an error being thrown.