Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
taroxd committed Mar 18, 2016
1 parent acc0fc3 commit 8a3e959
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/index.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ItemInfoArea = React.createClass
getLevelKey: (alv, level) ->
alv * 11 + level
getLevelsFromKey: (key) ->
alv: Math.floor(key / 11)
alv: key // 11
level: key % 11

updateSlot: (slot) ->
Expand Down Expand Up @@ -107,7 +107,6 @@ ItemInfoArea = React.createClass

handleResponse: (e) ->
{method, path, body, postBody} = e.detail
{$ships, _ships, _slotitems, $slotitems, _} = window
@rows = @state.rows
shouldUpdate = false
switch path
Expand Down

0 comments on commit 8a3e959

Please sign in to comment.