Oops jshint fail again

This commit is contained in:
Neil Lalonde 2013-05-24 12:45:58 -04:00
parent e600b45155
commit 48d39d2f8c
1 changed files with 6 additions and 2 deletions

View File

@ -32,9 +32,13 @@ Discourse.PopupInputTipView = Discourse.View.extend({
bounce: function() {
var $elem = this.$()
if( !this.animateAttribute ) {
this.animateAttribute = $elem.css('left') == 'auto' ? 'right' : 'left';
this.animateAttribute = $elem.css('left') === 'auto' ? 'right' : 'left';
}
if( this.animateAttribute === 'left' ) {
this.bounceLeft($elem);
} else {
this.bounceRight($elem);
}
this.animateAttribute == 'left' ? this.bounceLeft($elem) : this.bounceRight($elem);
}.observes('show'),
bounceLeft: function($elem) {