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. Regions: "# bb-" "Area", shippingRegion: "#bb- global shipping area"}, events: {"click on bb-cancel": "showCancelModal" "keypress #bb-cancel": "handleShowCancelModal"}, start: function ( ) {Var that this =; spinnerMod = mad.App.module ("Seller.OrdMgmt.Spinner"); this.loadingController = new spinnerMod.Controller (); mad.App.vent.on ("RefModal: PayRef", Function {order total} Tr

This reference to your event handler Try to force:

  mad.App.vent.on ("RefModal: PayRef", function (order model) {var totalView = mad.App.Seller.OrdMgmt.OrdTotals. Controller.createPackageOrderTotals (orderModel); That.totalRegion.show (totalView); }, this);  

Notice this passed as the last argument after which you this.totalRegion.show (see)


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -