Closed misantronic closed 8 years ago
Closing for the same reasons as #295.
Alright.
If anyone is interested in supporting Marionette.bindings use:
var addBindingFn = Backbone.View.prototype.addBinding;
_.extend(Backbone.View.prototype, {
addBinding: function (optionalModel, selector, binding) {
if(_.isString(selector) && selector.charAt(0) === '@' && this.ui) {
selector = this.ui[selector.substr(4)].selector;
}
return addBindingFn.call(this, optionalModel, selector, binding);
}
});
Awesome. Thanks for that.
uiBindings are currently not supported so I added a few lines of code to make it work. Parsing of the @ui-sytax is taken from the original Marionette source