git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed $.execute back to eval()
[jquery.git]
/
jquery
/
jquery.js
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
1076ef5
..
a275b02
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-318,8
+318,6
@@
function $(a,c) {
return self;
}
return self;
}
-$.eval = eval;
-
$.apply = function(o,f,a) {
a = a || [];
if ( f.apply ) {
$.apply = function(o,f,a) {
a = a || [];
if ( f.apply ) {
@@
-330,7
+328,7
@@
$.apply = function(o,f,a) {
p[i] = 'a['+i+']';
}
o.$$exec = this;
p[i] = 'a['+i+']';
}
o.$$exec = this;
- var r = $.eval('o.$$exec(' + p.join(',') + ')');
+ var r = eval('o.$$exec(' + p.join(',') + ')');
o.$$exec = null;
return r;
}
o.$$exec = null;
return r;
}
@@
-398,7
+396,7
@@
$.clean = function(a) {
$.g = {
'': "m[2] == '*' || a.nodeName.toUpperCase() == m[2].toUpperCase()",
$.g = {
'': "m[2] == '*' || a.nodeName.toUpperCase() == m[2].toUpperCase()",
- '#': "a.getAttribute('id') == m[2]",
+ '#': "a.attributes['id'].nodeValue == m[2]",
':': {
lt: "i < m[3]-0",
gt: "i > m[3]-0",
':': {
lt: "i < m[3]-0",
gt: "i > m[3]-0",
@@
-625,7
+623,7
@@
$.filter = function(t,r,not) {
}
if ( f !== null ) {
}
if ( f !== null ) {
- $.eval('f = function(a,i){return ' + f + '}');
+ eval('f = function(a,i){return ' + f + '}');
r = g( r, f );
}
}
r = g( r, f );
}
}