Side navigation
#9422 closed bug (invalid)
Opened May 25, 2011 06:00PM UTC
Closed May 25, 2011 07:03PM UTC
Last modified June 27, 2011 03:18PM UTC
Recursion with .trigger('resize') within $(window).resize(...)
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | misc | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Some of my "plugin" are broke with v1.6.1. Working with v1.5.1
var drop = $('<div class="dropmenu"></div>'); // Resize drop menu $(window).resize(function (e) { drop.trigger('resize'); // toggle this line to cause recursion... }) drop.resize(function (e) { // too much recursion })
Attachments (0)
Change History (3)
Changed May 25, 2011 07:03PM UTC by comment:1
component: | unfiled → misc |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Changed May 26, 2011 03:44AM UTC by comment:2
Is drop
even attached to the document? It sounds like this is a plugin problem, so please ask for help on the forum and provide a simplified but complete example.
Changed June 27, 2011 03:18PM UTC by comment:3
I don't see an endless recursive with the sample provided.
I have a similar problem after updated my jq to 1.6.1.
"too much recursion" on firefox," Uncaught RangeError: Maximum call stack size exceeded" on google chrome, useless error page on I.E 9
I use something like this example, like window resize and some div trigger to resize event.
Reverting to 1.5.x
You've created a endless recursive call stack - I doubt that ever worked.