OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 part of template_binding; | |
6 | |
7 /** Extensions to the [TextAreaElement] API. */ | |
8 class _TextAreaElementExtension extends _ElementExtension { | |
9 _TextAreaElementExtension(TextAreaElement node) : super(node); | |
10 | |
11 TextAreaElement get _node => super._node; | |
12 | |
13 Bindable bind(String name, value, {bool oneTime: false}) { | |
14 if (name != 'value') return super.bind(name, value, oneTime: oneTime); | |
15 | |
16 _node.attributes.remove(name); | |
17 if (oneTime) { | |
18 _InputBinding._updateProperty(_node, value, name); | |
19 return null; | |
20 } | |
21 | |
22 return _maybeUpdateBindings(name, new _InputBinding(_node, value, name)); | |
23 } | |
24 } | |
OLD | NEW |