mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
Merge pull request #232 from webcomponents/removeFlag
Remove shadowDom flag from webcomponents-lite
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
}
|
||||
}
|
||||
// log flags
|
||||
if (flags.log) {
|
||||
if (flags.log && flags.log.split) {
|
||||
var parts = flags.log.split(',');
|
||||
flags.log = {};
|
||||
parts.forEach(function(f) {
|
||||
@@ -45,17 +45,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Determine default settings.
|
||||
// If any of these flags match 'native', then force native ShadowDOM; any
|
||||
// other truthy value, or failure to detect native
|
||||
// ShadowDOM, results in polyfill
|
||||
flags.shadow = (flags.shadow || flags.shadowdom || flags.polyfill);
|
||||
if (flags.shadow === 'native') {
|
||||
flags.shadow = false;
|
||||
} else {
|
||||
flags.shadow = flags.shadow || !HTMLElement.prototype.createShadowRoot;
|
||||
}
|
||||
|
||||
// construct full dependency list
|
||||
var modules = [
|
||||
'HTMLImports/HTMLImports.js',
|
||||
|
||||
Reference in New Issue
Block a user