mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Make spec pass by using code that is not horribly written
This commit is contained in:
@@ -18,7 +18,7 @@ class Operation
|
||||
|
||||
preview: ->
|
||||
range = @anchorRange.getBufferRange()
|
||||
@buffer.textInRange(range)
|
||||
@buffer.getTextInRange(range)
|
||||
|
||||
destroy: ->
|
||||
@buffer.release()
|
||||
|
||||
@@ -5,5 +5,5 @@ class PreviewItem extends View
|
||||
@content: (operation) ->
|
||||
@li =>
|
||||
@span operation.getPath(), outlet: "path", class: "path"
|
||||
@span outlet: "preview", class: "preview", ->
|
||||
operation.preview()
|
||||
@span operation.preview(), outlet: "preview", class: "preview"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user