Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3942 closed defect (invalid)

jQuery.getScript requires a callback

Reported by: trollix@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In jQuery 1.0.2, when using jQuery.getScript( this.src ), the function does not work if you don't have a callback function.

Example code: jQuery.getScript( this.src ); line 1647

Firefox's JavaScript console shows:

Error: data has no properties Source File: http://localhost/jQuery.js Line: 1647

Error: data has no properties Source File: http://localhost/jQuery.js Line: 1708

However, this code works:

jQuery.getScript( this.src, function() { } ); line 1647

Thanks to fix that little bug.

Regards, Trollix.

Attachments (0)

Change History (4)

comment:1 by Christopher Lenz, 18 years ago

Resolution: invalid
Status: newclosed

You probably meant to file this with the jQuery project at http://jquery.com/

comment:2 by Christian Boos, 18 years ago

The front page http://jquery.com/dev/ seems to have been vandalized a bit, here's the last full page: http://jquery.com/docs/Development/?version=4 which contains a link for creating new tickets, i.e. http://jquery.com/dev/bugs/new

comment:3 by Christian Boos, 18 years ago

Milestone: 1.0

comment:4 by Christian Boos, 18 years ago

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.