Side navigation
#1253 closed enhancement (fixed)
Opened May 29, 2007 08:20PM UTC
Closed February 10, 2008 05:40AM UTC
Allow binding to multiple events simultaneously with .bind()
Reported by: | daemach | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | event | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I was just reading in this cool book "Pro Javascript Techniques" about how it's a good idea to bind events to both keypress and mouse events for accessibility. On that note, I'd like to ask again if you can implement binding to multiple events with bind.
$('#myinput').bind("focus mouseover",function(){doit();})
Attachments (3)
Change History (7)
Changed June 01, 2007 04:21AM UTC by comment:1
need: | Review → Test Case |
---|
Changed June 01, 2007 04:18PM UTC by comment:2
milestone: | 1.1.3 → 1.2 |
---|
Ok, we actually landed this similar functionality for classes in 1.1 (#172), so we should hold this off until 1.2. I've re-tagged the milestone to reflect that.
Changed June 06, 2007 03:23AM UTC by comment:3
This latest patch doesn't work for the one method.
I've created a plugin/extension until we can get this into the core.
http://blog.brandonaaron.net/2007/06/05/bind-multiple-events-simultaneously-with-jquery/
Changed November 20, 2007 11:28PM UTC by comment:4
milestone: | 1.2 → 1.2.2 |
---|
I've started work on this in the branch. I've moved the logic directly into the add and remove event functions.
Changed November 20, 2007 11:28PM UTC by comment:5
Replying to [comment:5 brandon]:
That link should be: event_enhancements branch.
Changed February 09, 2008 06:28PM UTC by comment:6
fixs in r4162
Changed February 10, 2008 05:40AM UTC by comment:7
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed as cloudream said again. :)