diff --git a/css.escape.js b/css.escape.js index 397cf88..aa68ee2 100644 --- a/css.escape.js +++ b/css.escape.js @@ -12,6 +12,9 @@ factory(root); } }(typeof global != 'undefined' ? global : this, function(root) { + if (!root) { + root = {}; + } if (root.CSS && root.CSS.escape) { return root.CSS.escape;