From f6cf5939fcad74b8c3654552135c3bb4801d42c6 Mon Sep 17 00:00:00 2001 From: Keanu Lee Date: Mon, 24 Oct 2016 16:39:17 -0700 Subject: [PATCH] Don't use this._warn --- app-scroll-effects/app-scroll-effects-behavior.html | 4 ++-- app-scroll-effects/effects/resize-snapped-title.html | 4 ++-- app-scroll-effects/effects/resize-title.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app-scroll-effects/app-scroll-effects-behavior.html b/app-scroll-effects/app-scroll-effects-behavior.html index 25a8984c..bc6a2b88 100644 --- a/app-scroll-effects/app-scroll-effects-behavior.html +++ b/app-scroll-effects/app-scroll-effects-behavior.html @@ -277,7 +277,7 @@ if ((effectDef = Polymer.AppLayout._scrollEffects[effectName])) { this._effects.push(this._boundEffect(effectDef, effectsConfig[effectName])); } else { - this._warn(this._logf('_effectsChanged', this._getUndefinedMsg(effectName))); + console.warn(this._getUndefinedMsg(effectName)); } } }, this); @@ -379,7 +379,7 @@ * @param {string} id The id for the node. */ _getDOMRef: function(id) { - this._warn(this._logf('_getDOMRef', '`'+ id +'` is undefined')); + console.warn('_getDOMRef', '`'+ id +'` is undefined'); }, _getUndefinedMsg: function(effectName) { diff --git a/app-scroll-effects/effects/resize-snapped-title.html b/app-scroll-effects/effects/resize-snapped-title.html index cbe0adc8..6a12e2ad 100644 --- a/app-scroll-effects/effects/resize-snapped-title.html +++ b/app-scroll-effects/effects/resize-snapped-title.html @@ -26,11 +26,11 @@ var fx = {}; if (!condensedTitle) { - this._warn(this._logf('effects[resize-snapped-title]', 'undefined `condensed-title`')); + console.warn('Scroll effect `resize-snapped-title`: undefined `condensed-title`'); return false; } if (!title) { - this._warn(this._logf('effects[resize-snapped-title]', 'undefined `main-title`')); + console.warn('Scroll effect `resize-snapped-title`: undefined `main-title`'); return false; } diff --git a/app-scroll-effects/effects/resize-title.html b/app-scroll-effects/effects/resize-title.html index f758801d..b25e93e2 100644 --- a/app-scroll-effects/effects/resize-title.html +++ b/app-scroll-effects/effects/resize-title.html @@ -29,11 +29,11 @@ var condensedTitle = this._getDOMRef('condensedTitle'); if (!condensedTitle) { - this._warn(this._logf('effects[resize-title]', 'undefined `condensed-title`')); + console.warn('Scroll effect `resize-title`: undefined `condensed-title`'); return false; } if (!title) { - this._warn(this._logf('effects[resize-title]', 'undefined `main-title`')); + console.warn('Scroll effect `resize-title`: undefined `main-title`'); return false; }