dijit.form.Textarea.postCreate
dojo.require("dijit.form.Textarea");
defined in dijit/form/Textarea.js
Usage
function () (view source)
if(dojo.isIE || dojo.isSafari || dojo.isFF >= 3){ this.domNode.style.overflowY = 'hidden'; }else if(dojo.isFF){ var w = this.iframe.contentWindow; var title = ''; try { // #4715: peeking at the title can throw a security exception during iframe setup title = this.iframe.contentDocument.title; } catch(e) {} if(!w || !title){ this.iframe.postCreate = dojo.hitch(this, this.postCreate); return; } var d = w.document; d.getElementsByTagName('HTML')[0].replaceChild(this.editNode, d.getElementsByTagName('BODY')[0]); if(!this.isLeftToRight()){ d.getElementsByTagName('HTML')[0].dir = "rtl"; } this.iframe.style.overflowY = 'hidden'; this.eventNode = d; // this.connect won't destroy this handler cleanly since its on the iframe's window object // resize is a method of window, not document w.addEventListener("resize", dojo.hitch(this, this._changed), false); // resize is only on the window object }else{ this.focusNode = this.domNode; } if(this.eventNode){ this.connect(this.eventNode, "keypress", this._onKeyPress); this.connect(this.eventNode, "mousemove", this._changed); this.connect(this.eventNode, "focus", this._focused); this.connect(this.eventNode, "blur", this._blurred); } if(this.editNode){ this.connect(this.editNode, "change", this._changed); // needed for mouse paste events per #3479 } this.inherited('postCreate', arguments);