aboutsummaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-10 15:37:07 -0700
committerJose Antonio Marquez2012-05-10 15:37:07 -0700
commitde7a9dd3cfe090362957d4fa7250e290c7aba20c (patch)
treec6b05f10925c9612925bc77712e2cd0eda9e179d /js/lib
parentd75aff9e251f84a13c326668a5271b5852dcde53 (diff)
parent9ace5e2348ead2cd40542531c54b4a243974d266 (diff)
downloadninja-de7a9dd3cfe090362957d4fa7250e290c7aba20c.tar.gz
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'js/lib')
-rwxr-xr-xjs/lib/NJUtils.js5
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