Edgewall Software

Ticket #3942 (closed defect: invalid)

Opened 23 months ago

Last modified 23 months ago

jQuery.getScript requires a callback

Reported by: trollix@… Owned by: jonas
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc:

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

Change History

Changed 23 months ago by cmlenz

  • status changed from new to closed
  • resolution set to invalid

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

Changed 23 months ago by cboos

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

Changed 23 months ago by cboos

  • milestone 1.0 deleted

Changed 23 months ago by cboos

Add/Change #3942 (jQuery.getScript requires a callback)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.