summaryrefslogtreecommitdiff
path: root/Cydia.app/menes
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-08-12 12:57:17 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:17 +0000
commit25a2158d9d2f51732843c7deb1835537d28b1ccd (patch)
tree8ce2305150f7a31c2c94153cef9f819d511a8cdc /Cydia.app/menes
parentdddbc481e8debaf3fd2fe1b41fc4ce30cb29a2b6 (diff)
Fixed trusted and added iSpazio and Depiction.
Diffstat (limited to 'Cydia.app/menes')
-rw-r--r--Cydia.app/menes/menes.js16
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;