From ac2fa81fb7b416e27a61a4b8444c5b3c089b7362 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Sun, 15 Apr 2018 18:38:09 -0700 Subject: [PATCH] Fixup a few places where comments were misplaced. --- lib/mixins/property-effects.js | 10 +++----- polymer-legacy.js | 26 ++++++++++---------- test/unit/shady-unscoped-style-import.js | 30 ++++++++++-------------- 3 files changed, 28 insertions(+), 38 deletions(-) diff --git a/lib/mixins/property-effects.js b/lib/mixins/property-effects.js index 8607b8cc00..00f1e17c2a 100644 --- a/lib/mixins/property-effects.js +++ b/lib/mixins/property-effects.js @@ -7,20 +7,16 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -/* for notify, reflect */ -/* for annotated effects */ -/* - FIXME(polymer-modulizer): the above comments were extracted - from HTML and may be out of place here. Review them and - then delete this comment! -*/ + import '../utils/boot.js'; import { dedupingMixin } from '../utils/mixin.js'; import { root as root$0, isAncestor, isDescendant, get as get$0, translate, isPath as isPath$0, set as set$0, normalize } from '../utils/path.js'; +/* for notify, reflect */ import * as caseMap from '../utils/case-map.js'; import { camelToDashCase as camelToDashCase$0, dashToCamelCase } from '../utils/case-map.js'; import { PropertyAccessors } from './property-accessors.js'; +/* for annotated effects */ import { TemplateStamp } from './template-stamp.js'; import { sanitizeDOMValue } from '../utils/settings.js'; diff --git a/polymer-legacy.js b/polymer-legacy.js index bd8192f2eb..d3eceb5118 100644 --- a/polymer-legacy.js +++ b/polymer-legacy.js @@ -1,15 +1,3 @@ -import { LegacyElementMixin } from './lib/legacy/legacy-element-mixin.js'; -import './lib/legacy/polymer-fn.js'; -import './lib/legacy/templatizer-behavior.js'; -import './lib/elements/dom-bind.js'; -import './lib/elements/dom-repeat.js'; -import './lib/elements/dom-if.js'; -import './lib/elements/array-selector.js'; -import './lib/elements/custom-style.js'; -import './lib/legacy/mutable-data-behavior.js'; -import { html as html$0 } from './lib/utils/html-tag.js'; - -// bc /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -19,11 +7,23 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ + +import { LegacyElementMixin } from './lib/legacy/legacy-element-mixin.js'; +import './lib/legacy/polymer-fn.js'; /* template elements */ +import './lib/legacy/templatizer-behavior.js'; +import './lib/elements/dom-bind.js'; +import './lib/elements/dom-repeat.js'; +import './lib/elements/dom-if.js'; +import './lib/elements/array-selector.js'; /* custom-style */ +import './lib/elements/custom-style.js'; /* bc behaviors */ +import './lib/legacy/mutable-data-behavior.js'; /* import html-tag to export html */ +import { html as html$0 } from './lib/utils/html-tag.js'; + +// bc export const Base = LegacyElementMixin(HTMLElement).prototype; -// NOTE: this is here for modulizer to export `html` for the module version of this file export { html$0 as html }; diff --git a/test/unit/shady-unscoped-style-import.js b/test/unit/shady-unscoped-style-import.js index a9949eddb1..3d9da11430 100644 --- a/test/unit/shady-unscoped-style-import.js +++ b/test/unit/shady-unscoped-style-import.js @@ -1,8 +1,18 @@ +/** +@license +Copyright (c) 2017 The Polymer Project Authors. All rights reserved. +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt +Code distributed by Google as part of the polymer project is also +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt +*/ + const $_documentContainer = document.createElement('div'); $_documentContainer.setAttribute('style', 'display: none;'); $_documentContainer.innerHTML = ` - + - + `; document.head.appendChild($_documentContainer); - -/** -@license -Copyright (c) 2017 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -/* - FIXME(polymer-modulizer): the above comments were extracted - from HTML and may be out of place here. Review them and - then delete this comment! -*/ -;