File: extensions.coffee
Defined in: | src/defaults |
Method Summary
Method Details
~
(void)
kb()
~
(void)
kb()
~
(void)
kb(obj)
Examples:
var model = new Backbone.Model({name: 'Bob'});
var view_model = {
wrapped_name: kb.defaultWrapper(kb.observable(model, 'name'), '(no name)')
}; // view_model.wrapped name: Bob
kb.utils.setToDefault(view_model); // view_model.wrapped name: (no name)