Last modified: 2013-05-24 11:27:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41450 - jquery.byteLimit with callback should not go into an endless loop when text is longer than max
jquery.byteLimit with callback should not go into an endless loop when text i...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-27 07:28 UTC by Umherirrender
Modified: 2013-05-24 11:27 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Umherirrender 2012-10-27 07:28:11 UTC
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:
mw.loader.load('jquery.byteLimit');
Comment 1 Gerrit Notification Bot 2013-05-11 17:18:19 UTC
Related URL: https://gerrit.wikimedia.org/r/63282 (Gerrit Change Iad84522659ab160e18828cbfc463db83bc7e4795)
Comment 2 Umherirrender 2013-05-24 11:27:38 UTC
successfully merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links