You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the latest version breaks when used with RequireJS (specifically handlebars.amd.js and handlebars.amd.min.js)
The problem exists in the following piece of code (starting at line 3859 in handlebars.amd.js):
var$Handlebars=global.Handlebars;/* istanbul ignore next */inst.noConflict=function(){if(global.Handlebars===inst){global.Handlebars=$Handlebars;}};
And it can be fixed by using the snippet starting at line 724 of the same file:
varroot=typeofglobal!=='undefined' ? global : window,$Handlebars=root.Handlebars;/* istanbul ignore next */Handlebars.noConflict=function(){if(root.Handlebars===Handlebars){root.Handlebars=$Handlebars;}};
So the code in question should become:
varroot=typeofglobal!=='undefined' ? global : window,$Handlebars=root.Handlebars;/* istanbul ignore next */inst.noConflict=function(){if(root.Handlebars===inst){root.Handlebars=$Handlebars;}};
The text was updated successfully, but these errors were encountered:
Hello,
It looks like the latest version breaks when used with RequireJS (specifically handlebars.amd.js and handlebars.amd.min.js)
The problem exists in the following piece of code (starting at line 3859 in handlebars.amd.js):
And it can be fixed by using the snippet starting at line 724 of the same file:
So the code in question should become:
The text was updated successfully, but these errors were encountered: