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 part of _js_helper; | 5 part of _js_helper; |
6 | 6 |
7 | 7 |
8 // TODO(ngeoffray): stop using this method once our optimizers can | 8 // TODO(ngeoffray): stop using this method once our optimizers can |
9 // change str1.contains(str2) into str1.indexOf(str2) != -1. | 9 // change str1.contains(str2) into str1.indexOf(str2) != -1. |
10 bool contains(String userAgent, String name) { | 10 bool contains(String userAgent, String name) { |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 const _safariHooksTransformer = const JS_CONST(r''' | 643 const _safariHooksTransformer = const JS_CONST(r''' |
644 function(hooks) { return hooks; } | 644 function(hooks) { return hooks; } |
645 '''); | 645 '''); |
646 | 646 |
647 | 647 |
648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r''' | 648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r''' |
649 function(hooks) { | 649 function(hooks) { |
650 if (typeof dartExperimentalFixupGetTag != "function") return hooks; | 650 if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); | 651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
652 }'''); | 652 }'''); |
OLD | NEW |