Skip to main content

Bug Tracker

Side navigation

#12946 closed bug (worksforme)

Opened November 22, 2012 07:34PM UTC

Closed November 23, 2012 05:42PM UTC

Last modified February 13, 2013 02:44PM UTC

jQuery.ready.promise is not a function

Reported by: v.churakov@i2d.ru 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 );

Attachments (0)
Change History (5)

Changed November 22, 2012 07:38PM UTC by v.churakov@i2d.ru comment:1

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

Changed November 23, 2012 05:42PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

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

Firefox 16.0.2 Windows 7

Please ask for help on a forum.

Changed February 13, 2013 01:45PM UTC by miphe comment:3

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

Changed February 13, 2013 01:46PM UTC by miphe comment:4

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

Changed February 13, 2013 02:44PM UTC by jaubourg comment:5

_comment0: 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): \ \ {{{!js \ $.Deferred(function( defer ) { \ $( defer.resolve ); \ $.ready.promise = defer.promise; \ }); \ }}}1360766834207802

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;
});