Permalink
Browse files

Moved name def so it follows new add()'s

  • Loading branch information...
Qard committed Jan 26, 2012
1 parent e9e7826 commit b612931d51e6cbf3e50e2120009cd95a490fa266
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
@@ -15,7 +15,6 @@ var helper = require('./helper')
*/
function Crsh (path, list) {
var self = this
- this.name = 'crsh-' + helper.md5(list.join(',')) + '.js'
// Path is optional
if (typeof path !== 'string') {
@@ -67,6 +66,7 @@ Crsh.prototype.add = function (f) {
}
this.list.push(f)
+ this.name = 'crsh-' + helper.md5(this.list.join(',')) + '.js'
this.watcher && this.watcher.add(f)
return this
}

0 comments on commit b612931

Please sign in to comment.