rendrjs / rendr

Render your Backbone.js apps on the client and the server, using Node.js.
MIT License
4.09k stars 312 forks source link

Add callback to bootstrapData #449

Closed purusho closed 9 years ago

purusho commented 9 years ago

In AMD we need to call App.start() inside a callback on bootstrapData otherwise App.start() get called before the data get stored in the modelStore.

alexindigo commented 9 years ago

Another step towards better tomorrow for Rendr+Requirejs community. :+1:

/cc @rendrjs/maintainers

saponifi3d commented 9 years ago

Everything looks sane, can you just add a few quick tests to make sure it invokes the cb in the correct state?

purusho commented 9 years ago

test added

saponifi3d commented 9 years ago

yayay thanks @purusho!! :)