Skip to content

Commit

Permalink
Merge pull request #2 from acdx/master
Browse files Browse the repository at this point in the history
Remove console printouts
  • Loading branch information
Frozenfire92 committed Sep 2, 2014
2 parents 4e0adca + e5c4d91 commit 82c44b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/components/pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ Ember.Pikaday.PikadayComponent = Ember.Component.extend({
var date = moment(this.get('value'));
if (date.isValid()) {
this.set('date', date.toDate());
} else {
// Value is invalid. Wait for it to validate.
console.log('date is invalid');
}
// else: Value is invalid. Wait for it to validate.
}.observes('value'),


Expand All @@ -80,7 +78,6 @@ Ember.Pikaday.PikadayComponent = Ember.Component.extend({
// Setup bindings to input field
var $el = self.$();
$el.keyup(function(event) {
console.log(event);
var val = $el.val();
self.set('value', val);
});
Expand All @@ -90,7 +87,6 @@ Ember.Pikaday.PikadayComponent = Ember.Component.extend({
field: $el[0],
format: format,
onSelect: function(date) {
console.log(date);
self.set('date', date);
}
});
Expand Down

0 comments on commit 82c44b7

Please sign in to comment.