Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1425 closed bug (fixed)

evalScript and global context

Reported by: MathieuMa Owned by: john
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: Cc: mathieuma@…
Blocked by: Blocking:

Description

Since changeset 2428 ( http://dev.jquery.com/changeset/2428 ) - the scope of the scripts loaded from ajax seems to have changed.

I load some content using ajax which contains :

  • A script tag containing a function declaration : var myFunction = new function(myVar) {}
  • Some content
  • Still in the loaded content, I call that function in a script tag : function(5);

This used to work, but now all I get is "can't find variable myFunction".

NB : I'm using trunk as I had some issues since the upgrade to 1.1.3 (which are fixed in trunk).

Change History (2)

comment:1 Changed 13 years ago by john

Owner: set to john

comment:2 Changed 13 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [2531].

Note: See TracTickets for help on using tickets.