rm $.slice

This commit is contained in:
James Campos 2011-04-02 18:30:53 -07:00
parent 3d931acfe4
commit 8ffb7dfafa
2 changed files with 0 additions and 16 deletions

View File

@ -256,16 +256,6 @@
return n;
}
},
slice: function(arr, id) {
var el, i, _len;
for (i = 0, _len = arr.length; i < _len; i++) {
el = arr[i];
if (id === el.id) {
arr.splice(i, 1);
return arr;
}
}
},
x: function(path, root) {
if (root == null) {
root = d.body;

View File

@ -145,12 +145,6 @@ $.extend $,
GM_getValue name, config[name][0]
zeroPad: (n) ->
if n < 10 then '0' + n else n
slice: (arr, id) ->
# do I actually need this?
for el, i in arr
if id == el.id
arr.splice i, 1
return arr
x: (path, root=d.body) ->
d.evaluate(path, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).
singleNodeValue