Page MenuHomePhabricator

jquery.byteLimit with callback should not go into an endless loop when text is longer than max
Closed, ResolvedPublic


Using jQuery.byteLimit with callback can go into a endless loop, when the text returned by the callback is longer than the maximum.

Use the following command and type some text into the input:
$( '<input />' ).appendTo( '#firstHeading' ).byteLimit( 5, function( text ) { return 'longText'+text; } );

Maybe you have to load the byteLimit function before, use this command:

Version: 1.21.x
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:48 AM
bzimport set Reference to bz41450.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: (Gerrit Change Iad84522659ab160e18828cbfc463db83bc7e4795)

successfully merged