buffer triggers a 'path-change' event when a file is moved or removed

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-24 10:34:30 -07:00
parent eafd007c39
commit 239fd2f9e6
2 changed files with 36 additions and 6 deletions

View File

@@ -56,6 +56,10 @@ class Buffer
@file.on "remove", =>
@file = null
@trigger "path-change", this
@file.on "move", =>
@trigger "path-change", this
@trigger "path-change", this