Sha256: 2935e1efbfe309f26dff731cdd8512d6c47601cdb49d7129abd7585f3dd017a3
Contents?: true
Size: 836 Bytes
Versions: 14
Compression:
Stored size: 836 Bytes
Contents
// ======================================================================== // SproutCore // copyright 2006-2008 Sprout Systems, Inc. // ======================================================================== require('views/field/text_field') ; /** @class Manages a text area field. @extends SC.TextFieldView @author Skip Baney @version 1.0 */ SC.TextareaFieldView = SC.TextFieldView.extend( /** @scope SC.TextareaFieldView.prototype */ { emptyElement: '<textarea></textarea>', didBecomeFirstResponder: function() { if (this.get('isVisibleInWindow')) { this.rootElement.focus(); this.invokeLater(this._selectRootElement, 1) ; } // hide the hint text if it is showing. this._updateFieldHint() ; }, insertNewline: function(evt) { evt._stopWhenHandled = false; return true; } });
Version data entries
14 entries across 14 versions & 1 rubygems