Chromium Code Reviews| Index: corelib/unified/core/implementation/expando.dart |
| diff --git a/lib/html/src/XMLDocument.dart b/corelib/unified/core/implementation/expando.dart |
| similarity index 54% |
| copy from lib/html/src/XMLDocument.dart |
| copy to corelib/unified/core/implementation/expando.dart |
| index 47fc63a54eff9d728aad59e96d81b69d96c593fa..bea086c30971b728f58df3f0b5e3ecb5e30bce90 100644 |
| --- a/lib/html/src/XMLDocument.dart |
| +++ b/corelib/unified/core/implementation/expando.dart |
| @@ -2,11 +2,12 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| -interface XMLDocument extends Document, XMLElement |
| - default XMLDocumentWrappingImplementation { |
| +class ExpandoImplementation<T> implements Expando<T> { |
|
Mads Ager (google)
2012/08/01 13:48:34
This is an extremely confusing diff. Did you copy
Anders Johnsen
2012/08/01 14:21:09
Emm, waw, diff tool trying to be too clever. :)
|
| + final String name; |
| - /** WARNING: Currently this doesn't work on Dartium (issue 649). */ |
| - XMLDocument.xml(String xml); |
| + const ExpandoImplementation([this.name]); |
| - XMLDocument clone(bool deep); |
| + external T operator[](Object object); |
| + external void operator[]=(Object object, T value); |
| + external String toString(); |
| } |