diff options
Diffstat (limited to 'node_modules/handlebars/lib/handlebars/no-conflict.js')
-rw-r--r-- | node_modules/handlebars/lib/handlebars/no-conflict.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/handlebars/lib/handlebars/no-conflict.js b/node_modules/handlebars/lib/handlebars/no-conflict.js new file mode 100644 index 000000000..40a44d7a6 --- /dev/null +++ b/node_modules/handlebars/lib/handlebars/no-conflict.js @@ -0,0 +1,13 @@ +/* global window */ +export default function(Handlebars) { + /* istanbul ignore next */ + let root = typeof global !== 'undefined' ? global : window, + $Handlebars = root.Handlebars; + /* istanbul ignore next */ + Handlebars.noConflict = function() { + if (root.Handlebars === Handlebars) { + root.Handlebars = $Handlebars; + } + return Handlebars; + }; +} |