Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12946 closed bug (worksforme)

jQuery.ready.promise is not a function

Reported by: v.churakov@… 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 6 years ago by v.churakov@…

In version 1.7.2 and below everything is OK, since 1.8.0 and up to 1.8.3, error in console

comment:2 Changed 6 years ago by dmethvin

Resolution: worksforme
Status: newclosed

http://jsfiddle.net/dmethvin/42HwJ/

Firefox 16.0.2 Windows 7

Please ask for help on a forum.

comment:3 Changed 6 years ago by miphe

I experienced this problem when trying to use the jQuery plugin include - which is no longer supported to my knowledge.

comment:4 Changed 6 years ago by miphe

I experienced this problem when trying to use the jQuery plugin include - which is no longer supported to my knowledge.

comment:5 Changed 6 years ago by jaubourg

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;
});
Last edited 6 years ago by jaubourg (previous) (diff)
Note: See TracTickets for help on using tickets.