mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Make spec pass by using code that is not horribly written
This commit is contained in:
parent
a5032e3811
commit
86b0fee4f1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user