OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Teaches dart2js about the wrapping that is done by the Shadow DOM polyfill. | 5 // Teaches dart2js about the wrapping that is done by the Shadow DOM polyfill. |
6 (function() { | 6 (function() { |
7 var ShadowDOMPolyfill = window.ShadowDOMPolyfill; | 7 var ShadowDOMPolyfill = window.ShadowDOMPolyfill; |
8 if (!ShadowDOMPolyfill) return; | 8 if (!ShadowDOMPolyfill) return; |
9 | 9 |
10 // TODO(sigmund): remove the userAgent check once 1.6 rolls as stable. | 10 // TODO(sigmund): remove the userAgent check once 1.6 rolls as stable. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 return name; | 60 return name; |
61 } | 61 } |
62 | 62 |
63 obj = unwrapped; | 63 obj = unwrapped; |
64 } | 64 } |
65 return originalGetTag(obj); | 65 return originalGetTag(obj); |
66 } | 66 } |
67 }); | 67 }); |
68 })(); | 68 })(); |
OLD | NEW |