Skip to content

Commit

Permalink
removing unused callback code. no need for callbacks since we have tr…
Browse files Browse the repository at this point in the history
…iggers
  • Loading branch information
Alex Vernacchia committed Dec 13, 2013
1 parent 4c89377 commit c201d2b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ define(function (require) {
this.stagedDate.setHours( 0,0,0,0 );

this.done = false;
this.callbacks = [];

this.minDate = new Date();
this.minDate.setDate( this.minDate.getDate() - 1 );
Expand Down Expand Up @@ -377,12 +376,6 @@ define(function (require) {
return this._show( !hide );
},

_runCallbacks: function() {
for (var i = 0; i < this.callbacks.length; i++) {
this.callbacks[ i ]( this.date );
}
},

_showView: function( view ) {
if( view === 1 ) {
this.options.showDays = true;
Expand Down Expand Up @@ -583,7 +576,6 @@ define(function (require) {
this.setDate( this.stagedDate );
this._render();
this.done = true;
this._runCallbacks();
},

_pickYear: function( e ) {
Expand Down

0 comments on commit c201d2b

Please sign in to comment.