diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-08-12 12:57:17 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:08:17 +0000 |
commit | 25a2158d9d2f51732843c7deb1835537d28b1ccd (patch) | |
tree | 8ce2305150f7a31c2c94153cef9f819d511a8cdc /Cydia.app/menes | |
parent | dddbc481e8debaf3fd2fe1b41fc4ce30cb29a2b6 (diff) |
Fixed trusted and added iSpazio and Depiction.
Diffstat (limited to 'Cydia.app/menes')
-rw-r--r-- | Cydia.app/menes/menes.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Cydia.app/menes/menes.js b/Cydia.app/menes/menes.js index 1d153bb..64ec5d0 100644 --- a/Cydia.app/menes/menes.js +++ b/Cydia.app/menes/menes.js @@ -24,9 +24,10 @@ var $ = function (arg, doc) { else if (type == "string") { if (doc == undefined) doc = document; - if (arg.charAt(0) == '#') - return new $([doc.getElementById(arg.substring(1))]); - else if (arg.charAt(0) == '.') + if (arg.charAt(0) == '#') { + var node = doc.getElementById(arg.substring(1)); + return $(node == null ? [] : [node]); + } else if (arg.charAt(0) == '.') return new $(doc.getElementsByClassName(arg.substring(1))); else return $([doc]).descendants(arg); @@ -201,6 +202,15 @@ $.inject({ } }, + src: { + get: function (node) { + return node.src; + }, + set: function (node, value) { + node.src = value; + } + }, + value: { get: function (node) { return node.value; |