| Index: tools/dom/templates/html/impl/impl_Text.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Text.darttemplate b/tools/dom/templates/html/impl/impl_Text.darttemplate
|
| index e5bbf5d49735a760c193df03fd3a129c2a1d3675..f85315c7ae0563a469707f7906880fb399040748 100644
|
| --- a/tools/dom/templates/html/impl/impl_Text.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Text.darttemplate
|
| @@ -9,4 +9,36 @@ part of $LIBRARYNAME;
|
| $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| factory $CLASSNAME(String data) => _$(CLASSNAME)FactoryProvider.create$CLASSNAME(data);
|
| $!MEMBERS
|
| +
|
| + _Binding _textBinding;
|
| +
|
| + @Experimental
|
| + void bind(String name, model, String path) {
|
| + if (name != 'text') {
|
| + super.bind(name, model, path);
|
| + return;
|
| + }
|
| +
|
| + unbind('text');
|
| + _textBinding = new _Binding(model, path, (value) { text = '$value'; });
|
| + }
|
| +
|
| + @Experimental
|
| + void unbind(String name) {
|
| + if (name != 'text') {
|
| + super.unbind(name);
|
| + return;
|
| + }
|
| +
|
| + if (_textBinding == null) return;
|
| +
|
| + _textBinding.dispose();
|
| + _textBinding = null;
|
| + }
|
| +
|
| + @Experimental
|
| + void unbindAll() {
|
| + unbind('text');
|
| + super.unbindAll();
|
| + }
|
| }
|
|
|