aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_gl.js4
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: {},