Skip to content

Commit

Permalink
ensure window.Polymer is an object. This allows proper manipulation o…
Browse files Browse the repository at this point in the history
…f it via extend.
  • Loading branch information
sorvell committed Nov 6, 2013
1 parent 8243d57 commit 10ee1a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
* license that can be found in the LICENSE file.
*/

(function(scope) {

// TODO(sorvell): this ensures Polymer is an object and not a function
// Platform is currently defining it as a function to allow for async loading
// of polymer; once we refine the loading process this likely goes away.
if (typeof window.Polymer === 'function') {
Polymer = {};
}

(function(scope) {
// FOUC prevention tactic
// default list of veiled elements
scope.veiledElements = ['body'];
Expand Down

0 comments on commit 10ee1a6

Please sign in to comment.