Permalink
Browse files

slider 이벤트 문제 수정

  • Loading branch information...
1 parent 1ed3b7b commit 406c6918c2a227ccd3cd4fb91fde60c2ccdbd25e @chorr chorr committed Feb 19, 2012
Showing with 7 additions and 4 deletions.
  1. +2 −2 static/dot.app.js
  2. +5 −2 static/dot.ui.js
View
@@ -44,7 +44,7 @@ dot.App = {
new dot.UI.Slider({
target: $(".menu-slider"),
- events: {
+ handler: {
minus: this.zoomOut,
plus: this.zoomIn
}
@@ -80,7 +80,7 @@ dot.App = {
},
zoomOut: function() {
- console.log('zoom out')
+
}
})
View
@@ -11,7 +11,7 @@ dot.UI.Slider = Backbone.View.extend({
},
initialize: function(options) {
this.$target = options.target;
- this.events = options.events;
+ this.handler = options.handler;
this.render();
},
render: function() {
@@ -20,6 +20,9 @@ dot.UI.Slider = Backbone.View.extend({
return this;
},
minusHandler: function() {
- this.events.minus();
+ this.handler.minus();
+ },
+ plusHandler: function() {
+ this.handler.plus();
}
});

0 comments on commit 406c691

Please sign in to comment.