Ticket #3942 (closed defect: invalid)
Opened 5 years ago
Last modified 5 years ago
jQuery.getScript requires a callback
| Reported by: | trollix@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 5 years ago by cmlenz
- Resolution set to invalid
- Status changed from new to closed
comment:2 Changed 5 years 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
comment:3 Changed 5 years ago by cboos
- Milestone 1.0 deleted
comment:4 Changed 5 years ago by cboos
Actually, it's http://jquery.com/dev/bugs/new/



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