create-app
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -153,3 +153,3 @@ 'use strict'; | ||
value: function refreshView() { | ||
renderToContainer(this.render()); | ||
renderToContainer(this.render(), this); | ||
} | ||
@@ -229,12 +229,12 @@ // get container node | ||
saveControllerToCache(controller); | ||
return renderToContainer(result); | ||
return renderToContainer(result, controller); | ||
}); | ||
} | ||
saveControllerToCache(controller); | ||
return renderToContainer(component); | ||
return renderToContainer(component, controller); | ||
}; | ||
} | ||
function renderToContainer(component) { | ||
return viewEngine.render(component, _getContainer()); | ||
function renderToContainer(component, controller) { | ||
return viewEngine.render(component, _getContainer(), controller); | ||
} | ||
@@ -241,0 +241,0 @@ |
@@ -104,7 +104,7 @@ 'use strict'; | ||
} | ||
var content = renderToString(component); | ||
var content = renderToString(component, controller); | ||
return { content: content, controller: controller }; | ||
}); | ||
} | ||
var content = renderToString(component); | ||
var content = renderToString(component, controller); | ||
return { content: content, controller: controller }; | ||
@@ -178,4 +178,4 @@ } | ||
function renderToString(component) { | ||
return viewEngine.render(component); | ||
function renderToString(component, controller) { | ||
return viewEngine.render(component, controller); | ||
} | ||
@@ -182,0 +182,0 @@ |
{ | ||
"name": "create-app", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "configuring once, rendering both client and server.", | ||
@@ -5,0 +5,0 @@ "browser": "lib/client/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32335