Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: pkg/template_binding/lib/src/text_area_element.dart

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/template_binding/lib/src/text.dart ('k') | pkg/template_binding/lib/template_binding.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of template_binding; 5 part of template_binding;
6 6
7 /** Extensions to the [TextAreaElement] API. */ 7 /** Extensions to the [TextAreaElement] API. */
8 class _TextAreaElementExtension extends _ElementExtension { 8 class _TextAreaElementExtension extends _ElementExtension {
9 _TextAreaElementExtension(TextAreaElement node) : super(node); 9 _TextAreaElementExtension(TextAreaElement node) : super(node);
10 10
11 TextAreaElement get _node => super._node; 11 TextAreaElement get _node => super._node;
12 12
13 Bindable bind(String name, value, {bool oneTime: false}) { 13 Bindable bind(String name, value, {bool oneTime: false}) {
14 if (name != 'value') return super.bind(name, value, oneTime: oneTime); 14 if (name != 'value') return super.bind(name, value, oneTime: oneTime);
15 15
16 _node.attributes.remove(name);
16 if (oneTime) { 17 if (oneTime) {
17 _InputBinding._updateProperty(_node, value, name); 18 _InputBinding._updateProperty(_node, value, name);
18 return null; 19 return null;
19 } 20 }
20 21
21 _self.unbind(name); 22 return _maybeUpdateBindings(name, new _InputBinding(_node, value, name));
22 _node.attributes.remove(name);
23 return bindings[name] = new _InputBinding(_node, value, name);
24 } 23 }
25 } 24 }
OLDNEW
« no previous file with comments | « pkg/template_binding/lib/src/text.dart ('k') | pkg/template_binding/lib/template_binding.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698