Skip to content

Commit

Permalink
Update handlebars-runtime.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
tripp committed Sep 24, 2014
1 parent 5428ba9 commit e198fd2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/handlebars/js/handlebars-runtime.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */
Handlebars.VM = {};
(function (exports, Utils, Exception, COMPILER_REVISION, REVISION_CHANGES) {
(function (exports, Utils, Exception, createFrame, COMPILER_REVISION, REVISION_CHANGES) {
"use strict";
function checkRevision(compilerInfo) {
var compilerRevision = compilerInfo && compilerInfo[0] || 1,
Expand Down Expand Up @@ -182,11 +182,13 @@ exports.program = program;function invokePartial(partial, name, context, helpers
exports.invokePartial = invokePartial;function noop() { return ""; }

exports.noop = noop;function initData(context, data) {
if (!data || !('root' in data)) {
data = data ? createFrame(data) : {};
data.root = context;
}
return data;
if(!data || (typeof data !== "object")) {
data = {root: context};
} else if(!('root' in data)) {
data = createFrame(data);
data.root = context;
}
return data;
}
}(Handlebars.VM, Handlebars.Utils, Handlebars.Exception, Handlebars.COMPILER_REVISION, Handlebars.REVISION_CHANGES));
}(Handlebars.VM, Handlebars.Utils, Handlebars.Exception, Handlebars.createFrame, Handlebars.COMPILER_REVISION, Handlebars.REVISION_CHANGES));
Handlebars.template = Handlebars.VM.template;

0 comments on commit e198fd2

Please sign in to comment.