Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-slider/paper-slider-extracted.js

Issue 1468623004: Update Polymer from 1.2.1 -> 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@travis-yml
Patch Set: local-state.html Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Polymer({ 1 Polymer({
2 is: 'paper-slider', 2 is: 'paper-slider',
3 3
4 behaviors: [ 4 behaviors: [
5 Polymer.IronFormElementBehavior, 5 Polymer.IronFormElementBehavior,
6 Polymer.PaperInkyFocusBehavior, 6 Polymer.PaperInkyFocusBehavior,
7 Polymer.IronRangeBehavior 7 Polymer.IronRangeBehavior
8 ], 8 ],
9 9
10 properties: { 10 properties: {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 event.preventDefault(); 275 event.preventDefault();
276 }, 276 },
277 277
278 _knobTransitionEnd: function(event) { 278 _knobTransitionEnd: function(event) {
279 if (event.target === this.$.sliderKnob) { 279 if (event.target === this.$.sliderKnob) {
280 this._setTransiting(false); 280 this._setTransiting(false);
281 } 281 }
282 }, 282 },
283 283
284 _maxMarkersChanged: function(maxMarkers) { 284 _maxMarkersChanged: function(maxMarkers) {
285 var l = (this.max - this.min) / this.step; 285 if (!this.snaps) {
286 if (!this.snaps && l > maxMarkers) {
287 this._setMarkers([]); 286 this._setMarkers([]);
288 } else {
289 this._setMarkers(new Array(l));
290 } 287 }
288 var steps = Math.floor((this.max - this.min) / this.step);
289 if (steps > maxMarkers) {
290 steps = maxMarkers;
291 }
292 this._setMarkers(new Array(steps));
291 }, 293 },
292 294
293 _mergeClasses: function(classes) { 295 _mergeClasses: function(classes) {
294 return Object.keys(classes).filter( 296 return Object.keys(classes).filter(
295 function(className) { 297 function(className) {
296 return classes[className]; 298 return classes[className];
297 }).join(' '); 299 }).join(' ');
298 }, 300 },
299 301
300 _getClassNames: function() { 302 _getClassNames: function() {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 */ 382 */
381 383
382 /** 384 /**
383 * Fired when the slider's value changes due to user interaction. 385 * Fired when the slider's value changes due to user interaction.
384 * 386 *
385 * Changes to the slider's value due to changes in an underlying 387 * Changes to the slider's value due to changes in an underlying
386 * bound variable will not trigger this event. 388 * bound variable will not trigger this event.
387 * 389 *
388 * @event change 390 * @event change
389 */ 391 */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698