Skip to content

Commit

Permalink
use console.info
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 23, 2014
1 parent c5390bb commit 0f9502e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/scripts/advanced.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ cursorManager = advancedEditor.getModule('multi-cursor')
cursorManager.setCursor('basic', 0, 'basic', 'rgba(255,153,51,0.9)')

basicEditor.on('selection-change', (range) ->
console.log 'basic', 'selection', range
console.info 'basic', 'selection', range
cursorManager.moveCursor('basic', range.end) if range?
)

basicEditor.on('text-change', (delta, source) ->
console.log 'basic', 'text', delta, source
console.info 'basic', 'text', delta, source
return if source == 'api'
advancedEditor.updateContents(delta)
sourceDelta = basicEditor.getContents()
Expand All @@ -35,11 +35,11 @@ basicEditor.on('text-change', (delta, source) ->
)

advancedEditor.on('selection-change', (range) ->
console.log 'advanced', 'selection', range
console.info 'advanced', 'selection', range
)

advancedEditor.on('text-change', (delta, source) ->
console.log 'advanced', 'text', delta, source
console.info 'advanced', 'text', delta, source
return if source == 'api'
basicEditor.updateContents(delta)
sourceDelta = advancedEditor.getContents()
Expand Down

0 comments on commit 0f9502e

Please sign in to comment.