Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-scrub: use observe block
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Oct 24, 2013
1 parent 30c3b17 commit e3b57ab
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions polymer-scrub/polymer-scrub.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,29 +348,15 @@
snapPoints: null,
startSnap: 0,
snapThreshold: 0,
targetChanged: function() {
this.makeScrub();
},
animationChanged: function() {
this.makeScrub();
},
scaleChanged: function() {
this.makeScrub();
},
scrubTypeChanged: function() {
this.makeScrub();
},
nudgeTimeChanged: function() {
this.makeScrub();
},
snapPointsChanged: function() {
this.makeScrub();
},
snapThresholdChanged: function() {
this.makeScrub();
},
startSnapChanged: function() {
this.makeScrub();
observe: {
target: 'makeScrub',
animation: 'makeScrub',
scale: 'makeScrub',
scrubType: 'makeScrub',
nudgeTime: 'makeScrub',
snapPoints: 'makeScrub',
startSnap: 'makeScrub',
snapThreshold: 'makeScrub'
},
makeScrub: function() {
if (this.scrub) {
Expand Down

0 comments on commit e3b57ab

Please sign in to comment.