backbone-dotattr icon indicating copy to clipboard operation
backbone-dotattr copied to clipboard

Added support for the string properties with a dot symbol

Open lionvs opened this issue 9 years ago • 0 comments

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.

lionvs avatar Dec 08 '15 20:12 lionvs