You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why the "if" binder recreates the model? This causes strange errors when working with rv-on-* events. Since the event passes the model, it's passing the new model instance, not the model that rivets was binded to (obviously making any changes do not get reflected to the original model). I circumvented this by just passing "this.view.models" directly.
(this.nested || (this.nested = new Rivets.View(el, this.view.models, this.view.options()))).bind();
I picked up on one strange side effect, in which the default sightglass adapter's "stubFunction" method ended up with an undefined callback (I just added a check to make sure it was an actual callback). Was wondering if this would cause any other side effects?
The text was updated successfully, but these errors were encountered:
Is there a reason why the "if" binder recreates the model? This causes strange errors when working with rv-on-* events. Since the event passes the model, it's passing the new model instance, not the model that rivets was binded to (obviously making any changes do not get reflected to the original model). I circumvented this by just passing "this.view.models" directly.
(this.nested || (this.nested = new Rivets.View(el, this.view.models, this.view.options()))).bind();
I picked up on one strange side effect, in which the default sightglass adapter's "stubFunction" method ended up with an undefined callback (I just added a check to make sure it was an actual callback). Was wondering if this would cause any other side effects?
The text was updated successfully, but these errors were encountered: