diff options
author | Valerio Virgillito | 2012-05-10 15:09:32 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-10 15:09:32 -0700 |
commit | 9ace5e2348ead2cd40542531c54b4a243974d266 (patch) | |
tree | aa5792ea41243f3a451c6bd34c63f0f175f50602 /js/lib | |
parent | 6e3617e56c60894649e3df9c7e4563e99a3f793a (diff) | |
parent | bcc9f5edaf73529c057433bb3ee8219f3c6935b2 (diff) | |
download | ninja-9ace5e2348ead2cd40542531c54b4a243974d266.tar.gz |
Merge pull request #212 from mencio/dom-architecture
Dom architecture - Fixed the live preview for the new template
Diffstat (limited to 'js/lib')
-rwxr-xr-x | js/lib/NJUtils.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js index 5aaeb5f2..d0f547f5 100755 --- a/js/lib/NJUtils.js +++ b/js/lib/NJUtils.js | |||
@@ -18,8 +18,9 @@ exports.NJUtils = Montage.create(Component, { | |||
18 | 18 | ||
19 | ///// Quick "getElementById" | 19 | ///// Quick "getElementById" |
20 | $ : { | 20 | $ : { |
21 | value: function(id) { | 21 | value: function(id, doc) { |
22 | return document.getElementById(id); | 22 | var _doc = doc || document; |
23 | return _doc.getElementById(id); | ||
23 | } | 24 | } |
24 | }, | 25 | }, |
25 | 26 | ||