K... made some updates and seems to work perfectly. (Also added a
reverseStack function)... any feedback on this approach?
http://snipplr.com/view/13556/jquery-event-stack-binder/
On Mar 30, 12:23 am, sliver sliver2...@gmail.com wrote:
Actually, I need to make some changes... I wasn't
Thanks Eric!
I made some adjustments to your code (to make it a bit more readable
for me and to essentially just splice in the bound function to the
stack in the desired location).
You can check out the changes here:
http://snipplr.com/view/13556/jquery-event-stack-binder/
On Mar 27, 10:19
Actually, I need to make some changes... I wasn't correctly setting
the events object to the new order.
On Mar 29, 5:23 pm, sliver sliver2...@gmail.com wrote:
Thanks Eric!
I made some adjustments to your code (to make it a bit more readable
for me and to essentially just splice in the bound
I'm not sure if there's an easy method to alter the event stack in
jQuery, but I can think of a pretty straightforward workaround,
providing you bind the forcestop function as the first event
handler.
$('#myTestEl').bind('click.forcestop', function(e){
var el = $(this), force =
It's potentially a pain, but if you know all of the events bound to
it, you could unbind, add your event, then add all of the others.
I too wish there was an easy way to view/modify the event stack...
Best of luck.
I've come up with a little plugin that will allow you to bind any
event (including custom ones) into a specified position in the event
stack.
http://snipplr.com/view/13515/jstack--jquery-event-stack-management/
The plugin is currently very basic and only allows you to insert a new
event into a
Eric,
Nice work!
I just did a quick test and it appears that once the override event is
inserted into the stack, it bumps the event it's replacing to the end.
That is, if I insert it at position 0, and then unbind it, the event
firing order is now 2,3,4,1. Same if I insert it into position one,
Yea, it swaps positions and the latest element will always move to the
end of the stack, so you have knowledge of its position.
On Mar 27, 9:12 pm, mkmanning michaell...@gmail.com wrote:
Eric,
Nice work!
I just did a quick test and it appears that once the override event is
inserted into
8 matches
Mail list logo