Skip to content

Commit

Permalink
* Fixed a bug with extra runtime
Browse files Browse the repository at this point in the history
* Push to 2.3.1
  • Loading branch information
bminer committed Jul 10, 2012
1 parent bb83b87 commit 8dc0791
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"jade",
"haml"
],
"version": "2.3.0",
"version": "2.3.1",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions plugins/extraRuntime.js
Expand Up @@ -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);
Expand All @@ -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.