Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
excludes on trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
thepian committed Sep 22, 2013
1 parent 669177f commit 9f4d1f5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/refreshing/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,14 @@ SourceTree.prototype.trigger = function(ev) {
// exclude
}
// console.log(sfn, this.root.config);
var config = this.root.config;
var config = this.root.config, rem = ev.name.substring(this.rootPrefix.length+1);
// console.log("-->",rem,"del",ev.isDelete(),"excluding",config.exclude);
for(var i=0,e; e = config.exclude[i]; ++i) {
if ("/"+e == sfn[0].substring(0,e.length+1)) {
console.log("excluding ",ev.name);
// app/ == app/css/abc.css
// abc.css == app/css/abc.css
// app/css/abc.css == app/css/abc.css
if (e == rem.substring(0,e.length+1)) {
// console.log("excluding ",ev.name);
return;
}
}
Expand Down

0 comments on commit 9f4d1f5

Please sign in to comment.