Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Fixed a bug with extra runtime

* Push to 2.3.1
  • Loading branch information...
commit 8dc07915374389ea12c52b256e2e4eef4caa1db7 1 parent bb83b87
@bminer authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  package.json
  2. +3 −2 plugins/extraRuntime.js
View
2  package.json
@@ -13,7 +13,7 @@
"jade",
"haml"
],
- "version": "2.3.0",
+ "version": "2.3.1",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"type": "git",
View
5 plugins/extraRuntime.js
@@ -54,7 +54,8 @@ blade.runtime.render = function(viewName, locals, cb) {
blade.runtime.renderTo = function(el, viewName, locals, cb) {
blade.runtime.render(viewName, locals, function(err, html, info) {
if(err) {if(cb) cb(err); return;}
- if(var $ = jQuery)
+ var $ = jQuery;
+ if($)
{
//TODO: Implement element preservation...
$(el).html(html);
@@ -78,4 +79,4 @@ blade.runtime.renderTo = function(el, viewName, locals, cb) {
if(jQuery)
jQuery.fn.render = function(viewName, locals, cb) {
blade.runtime.renderTo(this, viewName, locals, cb);
- };
+ };

0 comments on commit 8dc0791

Please sign in to comment.
Something went wrong with that request. Please try again.