Can you show an example where this fails? I just used this feature with 1.7.1,
and you had me scared, so I just double-checked on the latest Firefox. I don't
see any errors coming from evalScripts() there. Perhaps the issue is the type
of function you are evaluating? Perhaps there is another level of indirection
added outside the evalScripts method, and you don't need to provide it yourself
as you have done.
Walter
On Aug 23, 2013, at 9:01 AM, javi68yt2 wrote:
Hello all
Please, excuseme my very bad English.
I'm using a legacy version of prototype.js (1.4.0) and I cannot upgrade yet.
Since I've upgraded FF to the last version (23.0 beta), my scripts fail with
above message when I issue:
new Ajax.Updater(destiny, URL, {evalScripts: 'yes' });
After googling a lot, I've fixed :
evalScripts: function() {
return this.extractScripts().map(eval);
},
like this:
evalScripts: function() {
return this.extractScripts().map(function(script) { with(this){ return
eval(script);} }); // function(script) came from v1.5.0, the rest is
suggested by FF
},
PS:
Sorry for this naive solution or if it is fixed in some other place but in
last version of prototype.js (1.7.1) still remains:
function evalScripts() {
return this.extractScripts().map(function(script) { return eval(script);
});
}
Does this help someone else?
Cheerio!
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an
email to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To unsubscribe from this group and stop receiving emails from it, send an email
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.