Rename File and Directory 'contents-change' to 'contents-changed'

This commit is contained in:
Nathan Sobo
2013-01-03 17:21:07 -07:00
parent 76cda5f872
commit 5a409dde3c
9 changed files with 20 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ class Buffer
this
subscribeToFile: ->
@file.on "contents-change", =>
@file.on "contents-changed", =>
if @isModified()
@conflict = true
@updateCachedDiskContents()

View File

@@ -35,7 +35,7 @@ class Directory
subscribeToNativeChangeEvents: ->
@watchId = $native.watchPath @path, (eventType) =>
@trigger "contents-change" if eventType is "contents-change"
@trigger "contents-changed" if eventType is "contents-change"
unsubscribeFromNativeChangeEvents: ->
$native.unwatchPath(@path, @watchId)

View File

@@ -52,7 +52,7 @@ class File
oldContents = @read()
newContents = @read(true)
return if oldContents == newContents
@trigger 'contents-change'
@trigger 'contents-changed'
detectResurrectionAfterDelay: ->
_.delay (=> @detectResurrection()), 50