@@ -38,6 +38,9 @@ HandlebarsEnvironment.prototype = {
|
||||
this.helpers[name] = fn;
|
||||
}
|
||||
},
|
||||
unregisterHelper: function(name) {
|
||||
delete this.helpers[name];
|
||||
},
|
||||
|
||||
registerPartial: function(name, str) {
|
||||
if (toString.call(name) === objectType) {
|
||||
@@ -45,6 +48,9 @@ HandlebarsEnvironment.prototype = {
|
||||
} else {
|
||||
this.partials[name] = str;
|
||||
}
|
||||
},
|
||||
unregisterPartial: function(name) {
|
||||
delete this.partials[name];
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user