You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pflannery - initializing type: 'daily' did the trick. I also see your point about handling undefined case as well - will do.
@gertcuykens - I did notice the "freeze" issue. But now if I use value="{{value}}" attr for paper-slider it no longer freezes - I guess it needed some variable to bind the value.
Activity
gertcuykens commentedon Jan 18, 2015
What happens if you put this in the
readyfunction?PolymerExpressions.prototype.getMin = function(input) { if (input === 'daily') return 1; else if (input === 'weekly') return 10; }; PolymerExpressions.prototype.getMax = function(input) { if (input === 'daily') return 1000; else if (input === 'weekly') return 5000; }; PolymerExpressions.prototype.getStep = function(input) { if (input === 'daily') return 5; else if (input === 'weekly') return 50; };PS consider making a http://jsbin.com to show case the problem, its easier for amatures like me to answer the question :)
rajasharan commentedon Jan 18, 2015
if I add all those expressions inside ready each error repeats twice on page load.
(sorry still trying to figure out to make polymer work in jsbin)
pflannery commentedon Jan 18, 2015
I not seeing a problem
jsbin example
plunker example
rajasharan commentedon Jan 18, 2015
thanks for the jsbin - I did slight modification (used direct components from polymer website instead of ../bower_components)
live preview link: http://jsbin.com/nonetirovu
If i open the chrome console I see the same errors, do you see in your browser?
gertcuykens commentedon Jan 18, 2015
lol it even crashed my browser if I click on weekly
gertcuykens commentedon Jan 18, 2015
@robdodson why is this breaking the internet :P
gertcuykens commentedon Jan 18, 2015
Note that without paper-slider it works
http://jsbin.com/heqidu/1/edit?html,output
pflannery commentedon Jan 19, 2015
I've realised now that your filters don't return a value when the type is not set or unknown so the filters are being cached as undefined.
I think you have two choices here to fix this:
or 2. handle unknown\undefined types
gertcuykens commentedon Jan 19, 2015
Suggesting to build in
undefinedfail system in polymer because does bugs are very hard to find!rajasharan commentedon Jan 19, 2015
@pflannery - initializing
type: 'daily'did the trick. I also see your point about handling undefined case as well - will do.@gertcuykens - I did notice the "freeze" issue. But now if I use
value="{{value}}"attr for paper-slider it no longer freezes - I guess it needed some variable to bind the value.I think I'll close the issue. Thanks guys.
itsNikolay commentedon Oct 21, 2015
it fails when we use filter in
paper-elementsit looks like external components do not see application filters