diff options
author | Valerio Virgillito | 2012-05-10 15:07:52 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-10 15:07:52 -0700 |
commit | 6b65188b7a4a21ae1e575282fd5b6198b22ca7b7 (patch) | |
tree | a9432d002596de45da0493715d87b8fa285ff66f /js/lib | |
parent | 254e2f8ee3e915c7dafe445c724b88434fb52f28 (diff) | |
download | ninja-6b65188b7a4a21ae1e575282fd5b6198b22ca7b7.tar.gz |
Fixing the live preview for the new document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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 | ||