Skip to content

Commit

Permalink
fix removeclass fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Unicellular committed Jun 7, 2014
1 parent ecebd6d commit ce53887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coffee/all.coffee
Expand Up @@ -51,15 +51,15 @@ pop_widget = (wid) -> (e) ->
self.css('z-index', 9999)
modal.one 'show.bs.modal', ->
if wid.is calcu
wid.removeClass 'for-hp', 'for-sp'
wid.removeClass 'for-hp for-sp'
output.text target.text()
if self.hasClass 'hp'
wid.addClass 'for-hp'
else if self.hasClass 'sp'
wid.addClass 'for-sp'

if self.hasClass 'pop-mid'
wid.removeClass('for-star').removeClass('for-env').removeClass 'for-pet'
wid.removeClass 'for-star for-env for-pet'
if self.hasClass 'star'
wid.addClass 'for-star'
else if self.hasClass 'env'
Expand Down

0 comments on commit ce53887

Please sign in to comment.