$.xml(t,a,o,function(res){
// Assign it and execute all scripts
self.html(res.responseText).find("script").each(function(){
- try { $.execute( this.text || this.textContent || this.innerHTML || ""); } catch(e){}
+ try { eval( this.text || this.textContent || this.innerHTML || ""); } catch(e){}
});
// Callback function
$(target).load(url, this.vars, post_cb);
} else {
this.vars.push({name: 'evaljs', value: 1});
- $.xml(mth, url, $.param(this.vars), function(r) { $.execute(r.responseText); });
+ $.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); });
}
return this;
return self;
}
-$.execute = eval;
-
$.apply = function(o,f,a) {
a = a || [];
if ( f.apply ) {
p[i] = 'a['+i+']';
}
o.$$exec = this;
- var r = $.execute('o.$$exec(' + p.join(',') + ')');
+ var r = eval('o.$$exec(' + p.join(',') + ')');
o.$$exec = null;
return r;
}
}
if ( f !== null ) {
- $.execute('f = function(a,i){return ' + f + '}');
+ eval('f = function(a,i){return ' + f + '}');
r = g( r, f );
}
}