Merge pull request #990 from danyaPostfactum/disablespellcheck

Disable spellcheck in textarea, set wrap property instead of attribute
This commit is contained in:
Harutyun Amirjanyan 2012-10-01 08:52:23 -07:00
commit 501c47a559

View file

@ -46,7 +46,8 @@ var TextInput = function(parentNode, host) {
if (useragent.isTouchPad)
text.setAttribute("x-palm-disable-auto-cap", true);
text.setAttribute("wrap", "off");
text.wrap = "off";
text.spellcheck = false;
text.style.top = "-2em";
parentNode.insertBefore(text, parentNode.firstChild);