javascript - Re-rendering of Backbone.Marionette template on trigger event -
I am using backbone workmanship to render the layout on my page. However, after the initial rendering, I try to reproduce partial templates on the page after I issue a refund by the trigger ("Refhamdal: PARF"). Unfortunately, I end up with the following error: 'Uncaught TypeError: Property can not be read' after some debugging show 'undefined', it seems that I now have access to "that.totalRegion" totalRegion therefore be undefined The error goes ("that" still seems scope)
Anyone can help with the way to access. "" Trigger of the third, fourth, on the second, etc. "totalRegion RefModal: PayRef "that would be awesome. I hope there is enough information to go to this. This reference to your event handler Try to force: Notice this passed as the last argument after which you
mad.App.vent.on ("RefModal: PayRef", function (order model) {var totalView = mad.App.Seller.OrdMgmt.OrdTotals. Controller.createPackageOrderTotals (orderModel); That.totalRegion.show (totalView); }, this);
this.totalRegion.show (see)
Comments
Post a Comment