Skip to content

Commit cbcc3f1

Browse files
committed
tweaks coding style
1 parent cbd6677 commit cbcc3f1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/minimap-view.coffee

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ class MinimapView extends View
202202
@isClicked = false
203203
, 377
204204

205-
onScrollViewResized: =>
206-
@updateMinimapView()
205+
onScrollViewResized: => @updateMinimapView()
207206

208207
onDragStart: (e) =>
209208
# only supports for left-click
210-
return unless e.which is 1
209+
return if e.which isnt 1
211210
@isPressed = true
212211
@on 'mousemove.visible-area', @onMove
213212
@on 'mouseup.visible-area', @onDragEnd
@@ -221,8 +220,7 @@ class MinimapView extends View
221220

222221
# OTHER PRIVATE METHODS
223222

224-
activeTabSupportMinimap: ->
225-
@getEditor()
223+
activeTabSupportMinimap: -> @getEditor()
226224

227225
scale: (x=1,y=1) -> "scale(#{x}, #{y}) "
228226
translateY: (y=0) -> "translate3d(0, #{y}px, 0)"

0 commit comments

Comments
 (0)