backbone-dotattr
backbone-dotattr copied to clipboard
Added support for the string properties with a dot symbol
Allows users to get string properties with dot symbol as well as deep nested properties. With this update if there is a string property with dot notation (for example "car.color"), we will try to get this property by a full string name. If it is impossible we will process in the usual dotattr way.
Example: model: { "car.color" : "red" } model: { car: { color : "red" } }
model.get("car.color") - will work with any of the above model.