Skip to main content

Bug Tracker

Side navigation

#1425 closed bug (fixed)

Opened July 26, 2007 01:16PM UTC

Closed July 31, 2007 03:00AM UTC

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@users.sourceforge.net
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).

Attachments (0)
Change History (2)

Changed July 31, 2007 02:24AM UTC by john comment:1

owner: → john

Changed July 31, 2007 03:00AM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN rev [2531].