Polymer breaks with old version of Mootools -


latest update (also updated post title)

so tracked down issue old version of mootools (which cannot upgrade or remove due project restrictions). mootools following, code causes issue:

/* class: abstract     abstract class, used singleton. add .extend object  arguments:     object  returns:     object .extend property, equivalent <$extend>. */  var abstract = function(obj){     obj = obj || {};     obj.extend = $extend;     return obj; };  //window, document  var window = new abstract(window); var document = new abstract(document); 

the new definitions of window , document what's breaking polymer imports. suggestions on updating code above gracefully extend document/window objects without breaking existing functionality?

old description below before discovered issue lies mootools

i've included webcomponents.js script. then, when have polymer.html, errors below start appearing, , polymer components doesn't work.

the components works in isolation using polymer-cli. know may causing issue?

chrome devtools screenshot

edit: have in <head>

<script src="/media/bower_components/webcomponentsjs/webcomponents.js"></script> <link rel="import" href="/media/bower_components/polymer/polymer.html"> 

(...sorry cannot show more, private company code , what-not)

that's literally need in page raise error mentioned above. i'm starting think there other javascript library (there's lot) might interfering polymer, since cannot replicate issue on brand new site.

i should note, there no 404's. polymer.html file loaded expected in browser, verified in network panel in developer console.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -