From f39b63ccbcb4e3d527c566f5922fb74e1e4a49b1 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Fri, 31 Aug 2018 20:38:25 +0300 Subject: [PATCH] Cleanup modulizer conversion leftovers --- lib/elements/dom-if.js | 4 ++-- lib/elements/dom-repeat.js | 4 ++-- lib/legacy/legacy-element-mixin.js | 12 ++++++------ lib/legacy/templatizer-behavior.js | 6 +++--- lib/mixins/element-mixin.js | 20 ++++++++++---------- lib/mixins/gesture-event-listeners.js | 4 +--- lib/mixins/property-accessors.js | 8 +++----- test/smoke/data-table.html | 4 ++-- test/smoke/html-tag.html | 6 +++--- test/unit/case-map.html | 20 +++++++------------- test/unit/gestures.html | 10 +++++----- test/unit/importHref.html | 4 ++-- test/unit/render-status.html | 10 +++++----- test/unit/shady-content.html | 12 ++++++------ test/unit/styling-cross-scope-var.html | 6 +++--- test/unit/templatize-elements.js | 4 ++-- 16 files changed, 62 insertions(+), 72 deletions(-) diff --git a/lib/elements/dom-if.js b/lib/elements/dom-if.js index 52b6a10d84..f7f41c24f4 100644 --- a/lib/elements/dom-if.js +++ b/lib/elements/dom-if.js @@ -13,7 +13,7 @@ import { templatize } from '../utils/templatize.js'; import { Debouncer } from '../utils/debounce.js'; import { enqueueDebouncer, flush } from '../utils/flush.js'; import { microTask } from '../utils/async.js'; -import { root as root$0 } from '../utils/path.js'; +import { root } from '../utils/path.js'; /** * The `` element will stamp a light-dom ` diff --git a/test/unit/gestures.html b/test/unit/gestures.html index 89f642ad74..db348bc870 100644 --- a/test/unit/gestures.html +++ b/test/unit/gestures.html @@ -25,7 +25,7 @@ import './gestures-elements.js'; import { afterNextRender } from '../../lib/utils/render-status.js'; import * as gestures from '../../lib/utils/gestures.js'; -import { resetMouseCanceller, deepTargetFind, recognizers as recognizers$0, addListener, removeListener } from '../../lib/utils/gestures.js'; +import { resetMouseCanceller, deepTargetFind, recognizers, addListener, removeListener } from '../../lib/utils/gestures.js'; suite('simulate events', function() { @@ -474,14 +474,14 @@ el.dispatchEvent(ev); // some recognizers do not track the document, like tap - var recognizers = recognizers$0.filter(function(r) { + var recs = recognizers.filter(function(r) { return r.info.hasOwnProperty('movefn') && r.info.hasOwnProperty('upfn'); }); - assert.isAbove(recognizers.length, 0, 'some recognizers track the document'); + assert.isAbove(recs.length, 0, 'some recognizers track the document'); - recognizers.forEach(function(r) { + recs.forEach(function(r) { assert.isFunction(r.info.movefn, r.name + ' movefn'); assert.isFunction(r.info.upfn, r.name + ' upfn'); }); @@ -489,7 +489,7 @@ ev = new CustomEvent('mouseup', {bubbles: true, composed: true}); el.dispatchEvent(ev); - recognizers.forEach(function(r) { + recs.forEach(function(r) { assert.isNull(r.info.movefn, r.name + ' movefn'); assert.isNull(r.info.upfn, r.name + ' upfn'); }); diff --git a/test/unit/importHref.html b/test/unit/importHref.html index 746db8687d..9d5df44b67 100644 --- a/test/unit/importHref.html +++ b/test/unit/importHref.html @@ -20,7 +20,7 @@