#3942 closed defect (invalid)
jQuery.getScript requires a callback
Reported by: | 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 , 19 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 19 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 , 19 years ago
Milestone: | 1.0 |
---|
You probably meant to file this with the jQuery project at http://jquery.com/