Skip to content

Commit 10ee1a6

Browse files
committed
ensure window.Polymer is an object. This allows proper manipulation of it via extend.
1 parent 8243d57 commit 10ee1a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/boot.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
* license that can be found in the LICENSE file.
55
*/
66

7-
(function(scope) {
87

8+
// TODO(sorvell): this ensures Polymer is an object and not a function
9+
// Platform is currently defining it as a function to allow for async loading
10+
// of polymer; once we refine the loading process this likely goes away.
11+
if (typeof window.Polymer === 'function') {
12+
Polymer = {};
13+
}
14+
15+
(function(scope) {
916
// FOUC prevention tactic
1017
// default list of veiled elements
1118
scope.veiledElements = ['body'];

0 commit comments

Comments
 (0)