| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
| 8 | 8 |
| 9 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 9 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 10 factory $CLASSNAME() => document.$dom_createRange(); |
| 10 $!MEMBERS | 11 $!MEMBERS |
| 11 | 12 |
| 12 /** | 13 /** |
| 13 * Checks if createContextualFragment is supported. | 14 * Checks if createContextualFragment is supported. |
| 14 * | 15 * |
| 15 * See also: | 16 * See also: |
| 16 * | 17 * |
| 17 * * [createContextualFragment] | 18 * * [createContextualFragment] |
| 18 */ | 19 */ |
| 19 $if DART2JS | 20 $if DART2JS |
| 20 static bool get supportsCreateContextualFragment => | 21 static bool get supportsCreateContextualFragment => |
| 21 JS('bool', '("createContextualFragment" in window.Range.prototype)'); | 22 JS('bool', '("createContextualFragment" in window.Range.prototype)'); |
| 22 $else | 23 $else |
| 23 static bool get supportsCreateContextualFragment => true; | 24 static bool get supportsCreateContextualFragment => true; |
| 24 $endif | 25 $endif |
| 25 } | 26 } |
| OLD | NEW |