diff options
Diffstat (limited to 'lib/utils.coffee')
| -rw-r--r-- | lib/utils.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee index e9409826..c83a6cf8 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -129,6 +129,12 @@ Class = newClass.constructor = newClass newClass +globalRoot = if window? then window else global +globalRoot.extend = (hash1, hash2) -> + for key of hash2 + hash1[key] = hash2[key] + hash1 + root = exports ? window root.Utils = Utils root.Class = Class |
