#12946 closed bug (worksforme)
jQuery.ready.promise is not a function
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Code: $(document).ready( function (){
alert('1');
});
Browser&OS: Firefox 16.0.2 & windows 7 Prof
In version 1.8.0 and below everything is OK, since 1.8.1 and up to 1.8.3, error in console:
TypeError: jQuery.ready.promise is not a function jQuery.ready.promise().done( fn );
Change History (5)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 Changed 10 years ago by
I experienced this problem when trying to use the jQuery plugin include - which is no longer supported to my knowledge.
comment:4 Changed 10 years ago by
I experienced this problem when trying to use the jQuery plugin include - which is no longer supported to my knowledge.
comment:5 Changed 10 years ago by
I see nothing in the jQuery-include plugin that redefines $.ready
. Maybe I'm missing someting?
Is http://code.google.com/p/jquery-include/source/browse/trunk/js/jquery.include.js
the plugin you're talking about?
If you have a plugin that redefines $.ready
, yet doesn't redefine the promise
property, you could put something like this right after you loaded the plugin (not tested but should work):
$.Deferred(function( defer ) { $( defer.resolve ); $.ready.promise = defer.promise; });
In version 1.7.2 and below everything is OK, since 1.8.0 and up to 1.8.3, error in console