Skip to content

Commit

Permalink
moves join to correct location for bindVal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Pollak committed Jun 30, 2014
1 parent 58289e1 commit 16b8ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/js/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,11 @@ Card = (function() {
this.$cvcInput.bindVal(this.$cvcDisplay, {
filters: this.validToggler('cardCVC')
}).on('focus', this.handle('flipCard')).on('blur', this.handle('flipCard'));
this.$nameInput.bindVal(this.$nameDisplay, {
return this.$nameInput.bindVal(this.$nameDisplay, {
fill: false,
filters: this.validToggler('cardHolderName')
}).on('keydown', this.handle('captureName'));
return {
filters: this.validToggler('cardHolderName'),
join: ' '
};
}).on('keydown', this.handle('captureName'));
};

Card.prototype.handleInitialValues = function() {
Expand Down
2 changes: 1 addition & 1 deletion src/coffee/card.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ class Card
.bindVal @$nameDisplay,
fill: false
filters: @validToggler('cardHolderName')
join: ' '
.on 'keydown', @handle('captureName')
join: ' '

handleInitialValues: ->
$.each @options.formSelectors, (name, selector) =>
Expand Down

0 comments on commit 16b8ba3

Please sign in to comment.