OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 if (typeof Polymer == 'undefined') { | 5 var isChromePolymerInitialized; |
6 Polymer = { | 6 |
7 dom: 'shadow', | 7 if (!isChromePolymerInitialized) { |
8 lazyRegister: true, | 8 isChromePolymerInitialized = true; |
stevenjb
2016/07/07 16:58:41
Make this change in a separate CL. Add dbeam@ and
Alexander Alekseev
2016/07/08 01:12:29
Done.
| |
9 useNativeCSSProperties: true, | 9 if (typeof Polymer == 'undefined') { |
10 }; | 10 Polymer = { |
11 } else { | 11 dom: 'shadow', |
12 console.error('Polymer is already defined.'); | 12 lazyRegister: true, |
13 useNativeCSSProperties: true, | |
14 }; | |
15 } else { | |
16 console.error('Polymer is already defined.'); | |
17 } | |
13 } | 18 } |
OLD | NEW |