Page MenuHomePhabricator

jquery.byteLimit should unbind previous limit when called again with a different value
Closed, ResolvedPublic

Description

Currently, each time, $node.byteLimit(number) is executed, a new handler is attached. That's not good practise for a jQuery-plugIn. It should use its own namespace (.bind('keypress.byteLimit')) and do .unbind('keypress.byteLimit') before assigning the next handler.

Please implement this before Bug 29467 because it isn't funny to unbind all events myself, especially if the event-handlers have now own namespace. Thanks!


Version: 1.20.x
Severity: enhancement

Details

Reference
bz39353

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:49 AM
bzimport set Reference to bz39353.

This was implemented as part of a rewrite.

Change-Id: I9c204243d0bdf7158aa86a62b591ce717a36fe27