Ticket #3942 (closed defect: invalid)
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
Note: See
TracTickets for help on using
tickets.


