]> source.dussan.org Git - jquery.git/commitdiff
changed $.execute back to eval()
authorGilles van den Hoven <gilles0181@gmail.com>
Fri, 9 Jun 2006 15:36:06 +0000 (15:36 +0000)
committerGilles van den Hoven <gilles0181@gmail.com>
Fri, 9 Jun 2006 15:36:06 +0000 (15:36 +0000)
ajax/ajax.js
jquery/jquery.js

index f48f74c08c60c03af35083fac7d729d5fa3a374f..21a993498c5e2c43220a0bc613e8eaa3e728d1f6 100644 (file)
@@ -123,7 +123,7 @@ $.fn.load = function(a,o,f) {
        $.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
@@ -316,7 +316,7 @@ $.fn.putForm = function(target, pre_cb, post_cb, url, mth) {
                $(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;
index a7629d51b840fac3748da2a3d8cc6e701eb48b01..a275b02069458b98ecac398ffeb76836e8628f1e 100644 (file)
@@ -318,8 +318,6 @@ function $(a,c) {
        return self;
 }
 
-$.execute = eval;
-
 $.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;
-               var r = $.execute('o.$$exec(' + p.join(',') + ')');
+               var r = eval('o.$$exec(' + p.join(',') + ')');
                o.$$exec = null;
                return r;
        }
@@ -625,7 +623,7 @@ $.filter = function(t,r,not) {
                        }
                                                
                        if ( f !== null ) {
-                               $.execute('f = function(a,i){return ' + f + '}');
+                               eval('f = function(a,i){return ' + f + '}');
                                r = g( r, f );
                        }
                }