diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 17:56:41 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-01-24 17:57:22 -0500 |
commit | 7d545e024e9ec73fc6c5e69812d53741082bffd0 (patch) | |
tree | a3a8029d21bd5fc6b8e09a962a6c2c785f242e00 /src | |
parent | ca8db2849799350d1943e9e64544b0cf0d4b81a6 (diff) |
Fix the closure compilation
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index fd07d2f0..cfaf6549 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -4,8 +4,10 @@ var LibraryGL = { $GL: { - _hashtables: {}, hashtable: function(name) { + if (!this._hashtables) { + this._hashtables = {}; + } if (!(name in this._hashtables)) { this._hashtables[name] = { table: {}, |