Skip to content

Commit

Permalink
fix failing #test_patching_handlebars
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 20, 2013
1 parent 3ffb8a1 commit 2b1644d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/patch/patch.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
(function(window) {
var originalLookup = window.Handlebars.JavaScriptCompiler.prototype.nameLookup;
var originalLookup = Handlebars.JavaScriptCompiler.prototype.nameLookup;

window.Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
if (type === 'context') {
return '"CALLED PATCH"';
}
else {
return originalLookup.call(this, parent, name, type);
}
};
})(this);
Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
if (type === 'context') {
return '"CALLED PATCH"';
}
else {
return originalLookup.call(this, parent, name, type);
}
};

0 comments on commit 2b1644d

Please sign in to comment.