Permalink
Browse files

adjusting path evaluation

  • Loading branch information...
1 parent 71058eb commit 8c0340c7876add63496b53579056f7d3df65a492 @arboleya committed Apr 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/toaster.js
  2. +1 −1 src/toaster/core/module.coffee
View
2 lib/toaster.js
@@ -705,7 +705,7 @@
return FsUtil.watch_folder(this.src, /.coffee$/, function(info) {
var file, msg, relative_path, type;
type = StringUtil.titleize(info.type);
- relative_path = info.path.replace("" + _this.src + "/", "");
+ relative_path = info.path.replace(_this.src, "");
switch (info.action) {
case "created":
if (info.type === "file") {
View
2 src/toaster/core/module.coffee
@@ -51,7 +51,7 @@ class Module
type = StringUtil.titleize info.type
# relative filepath
- relative_path = info.path.replace "#{@src}/", ""
+ relative_path = info.path.replace @src, ""
# switch over created, deleted, updated and watching
switch info.action

0 comments on commit 8c0340c

Please sign in to comment.