https://bugzilla.wikimedia.org/show_bug.cgi?id=41450

       Web browser: ---
             Bug #: 41450
           Summary: jQuery.byteLimit with callback can end in a endless
                    loop
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: umherirrender_de...@web.de
                CC: krinklem...@gmail.com, tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---


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');

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to