(bug 40850) jquery.byteLimit: Always update prevSafeVal.
authorMatmaRex <matma.rex@gmail.com>
Thu, 15 Nov 2012 12:23:44 +0000 (13:23 +0100)
committerTimo Tijhof <ttijhof@wikimedia.org>
Fri, 16 Nov 2012 17:17:44 +0000 (18:17 +0100)
commit88c0badb351937f4eb9ca6a1daa4e0981af01273
treeaf1bd4ddcd642f196b9845c40339525a8ca4436e
parentbce969ea1803ba77ad4dfbdb2d5057a34c496d1e
(bug 40850) jquery.byteLimit: Always update prevSafeVal.

Not doing this sometimes caused trimValForByteLength to compare
the new value to an empty string instead of the old value,
resulting in trimming always at the end instead of at the position
of insertion.

Change-Id: I2e46961efa4f82732d577f7e5f98fc80719c88bb
resources/jquery/jquery.byteLimit.js
tests/qunit/suites/resources/jquery/jquery.byteLimit.test.js