peterkr
peterkr

Reputation: 421

OnRender / onShow / appendHtml functions are not firing in backbone marionette composite view

The way we are binding our view in layout is:

App.main.currentView.ChartViewRegion.show(new ChartView({model:chartDataCollections}));

In ChartView initialization it is returning the model data correctly, but it not invoking other functions. What might be the reason for that? its working fine on the web and but when we wrap it with phonegap its not firing those events.

Thanks Peter

Upvotes: 0

Views: 438

Answers (1)

Bingy
Bingy

Reputation: 644

I have noticed the same problem, so i looked through the source code.

both onRender and onShow have been deleted form the source code... they no longer exist. they are still in the comments, and in the documentation, but the functions do not exist.. its killing me.

(we are using version 1.04)

So i am currently scratching my head and trying to work out who is controlling the development of Marionette, and how much else has changed.... it would appear that everything now needs to access the triggered events around rendering, rather than rely on these callbacks, but have not found any documentation to explain how it all works, or what is the best practise.

Upvotes: 1

Related Questions