jonleighton/poltergeist — pull request #55 by elcuervo (2012-05-01 23:32:11+00:00)
Title: Fix BrowserError when setting a number value and a maxlength is present

If setting a number and a maxLength is present the substr will fail.
This commit cast the value as a string before continuing