diff options
author | Valerio Virgillito | 2012-06-01 15:26:30 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-01 15:26:30 -0700 |
commit | 4bb571a9551bba8a37bf3afd639412173d58bc71 (patch) | |
tree | 1be2a2883de37c44b471dae95b891ac8e67fc95b /js/document/models | |
parent | 8bbabd61e600e0a4aee72377c962d9147db1d8e1 (diff) | |
parent | 41e1d1f57aa60514ebeaa640e19ec4d145c33314 (diff) | |
download | ninja-4bb571a9551bba8a37bf3afd639412173d58bc71.tar.gz |
Merge pull request #262 from joseeight/Document
Fixing webGL helper, setting up montage flag for clean up
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/html.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js index fd42d4de..0fe33990 100755 --- a/js/document/models/html.js +++ b/js/document/models/html.js | |||
@@ -18,6 +18,14 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, { | |||
18 | value: false | 18 | value: false |
19 | }, | 19 | }, |
20 | //////////////////////////////////////////////////////////////////// | 20 | //////////////////////////////////////////////////////////////////// |
21 | //Called by the document immidiately after the model is created | ||
22 | init: { | ||
23 | value:function() { | ||
24 | //Creating instance of the webGL helper for this model | ||
25 | this.webGlHelper = webGlDocumentHelper.create(); | ||
26 | } | ||
27 | }, | ||
28 | //////////////////////////////////////////////////////////////////// | ||
21 | // | 29 | // |
22 | selection: { | 30 | selection: { |
23 | value: [] | 31 | value: [] |
@@ -57,7 +65,7 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, { | |||
57 | //////////////////////////////////////////////////////////////////// | 65 | //////////////////////////////////////////////////////////////////// |
58 | // | 66 | // |
59 | webGlHelper: { | 67 | webGlHelper: { |
60 | value: webGlDocumentHelper | 68 | value: null |
61 | }, | 69 | }, |
62 | //////////////////////////////////////////////////////////////////// | 70 | //////////////////////////////////////////////////////////////////// |
63 | // | 71 | // |