byteLimit/byteLength improvements:
authorKrinkle <krinkle@users.mediawiki.org>
Thu, 30 Jun 2011 01:06:47 +0000 (01:06 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Thu, 30 Jun 2011 01:06:47 +0000 (01:06 +0000)
commitf5ef49a84bb22d4134f594529621b970ee1c95b0
tree8de309c33cb7a75e43b59687c540b5808aaf677a
parent25ea9b8d959cddf9d61b9f8d59df7434c1ce4984
byteLimit/byteLength improvements:
* Split the byte length logic into a seperate method to allow it to be called directly on a string (easier to test and easier re-use)
* Added basic unit tests for it.
resources/Resources.php
resources/jquery/jquery.byteLength.js [new file with mode: 0644]
resources/jquery/jquery.byteLimit.js
tests/qunit/index.html
tests/qunit/suites/resources/jquery/jquery.byteLength.js [new file with mode: 0644]