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 comment:1
Changed November 23, 2012 05:42PM UTC by comment:2
resolution: | → worksforme |
---|---|
status: | new → closed |
Changed February 13, 2013 01:45PM UTC by 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 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 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; });
In version 1.7.2 and below everything is OK, since 1.8.0 and up to 1.8.3, error in console