Bug Tracker

Opened 15 years ago

Closed 14 years ago

#2141 closed enhancement (wontfix)

Make shortcut syntax for the focus and the blur event

Reported by: DarkAngelBGE Owned by:
Priority: minor Milestone: 1.2.4
Component: event Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:


Possible usage:


function() {}, for focus event function() {} for blur event


Something like:

(function($) {

var _focus = $.fn.focus; $.fn.focus = function(focus, blur) {

_focus.call(this, focus); if (blur) {





not tested

This is really like the .hover(callback, callback) thing :)

Change History (3)

comment:1 Changed 15 years ago by scott.gonzal

Component: interfaceevent
Owner: stefan deleted

comment:2 Changed 15 years ago by flesler

need: ReviewTest Case

Could you a consistent test case where this is useful ?

comment:3 Changed 14 years ago by brandon

Resolution: wontfix
Status: newclosed

Going to leave this to a plugin unless it becomes wildly popular.

Note: See TracTickets for help on using tickets.