mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Oops jshint fail again
This commit is contained in:
parent
e600b45155
commit
48d39d2f8c
@ -32,9 +32,13 @@ Discourse.PopupInputTipView = Discourse.View.extend({
|
|||||||
bounce: function() {
|
bounce: function() {
|
||||||
var $elem = this.$()
|
var $elem = this.$()
|
||||||
if( !this.animateAttribute ) {
|
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'),
|
}.observes('show'),
|
||||||
|
|
||||||
bounceLeft: function($elem) {
|
bounceLeft: function($elem) {
|
Loading…
Reference in New Issue
Block a user