Skip to content

Commit

Permalink
Merge pull request derbyjs#1 from codeparty/master
Browse files Browse the repository at this point in the history
Pull upstream changes
  • Loading branch information
SLaks committed Apr 10, 2013
2 parents 1dd1747 + 59817f1 commit 1ad8535
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions lib/derby.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ function init(modelBundle, ctx) {

// Reinitialize any collections which were already initialized
// during rendering on the server
var Collections = ctx.$collections.map(function(name) {
return app._Collections[name];
});
page.init.apply(page, Collections);
if (ctx.$collections) {
var Collections = ctx.$collections.map(function(name) {
return app._Collections[name];
});
page.init.apply(page, Collections);
}

// Update events should wait until after first render is done
dom._preventUpdates = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/refresh.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function setupStore(store, views, isProduction) {
}
}
callback(reload);
if (isProduction || reload) return;
if (isProduction || reload || !process.send) return;

appFilename = view._appFilename;
if (listeners[appFilename]) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "derby",
"description": "MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers.",
"version": "0.3.14",
"version": "0.3.15",
"homepage": "http://derbyjs.com/",
"repository": {
"type": "git",
Expand All @@ -15,7 +15,7 @@
"dom-shim": ">=0.1.0",
"html-util": ">=0.1.3",
"tracks": ">=0.1.10",
"racer": "0.3.14",
"racer": "0.3.15",
"chokidar": ">=0.2.6",
"stylus": ">=0.25.0",
"less": ">=1.3.0",
Expand Down

0 comments on commit 1ad8535

Please sign in to comment.