We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace98b8 commit 240fdd8Copy full SHA for 240fdd8
lib/index.js
@@ -115,7 +115,9 @@ function Pointer(obj) {
115
},
116
__stopWatch: {
117
value: function () {
118
- watcher.close();
+ if (watcher) {
119
+ watcher.close();
120
+ }
121
}
122
123
__startWatch: {
@@ -124,7 +126,9 @@ function Pointer(obj) {
124
126
125
127
128
});
- self.__startWatch();
129
+ if (opts.watch) {
130
+ self.__startWatch();
131
132
// Watcher is unstable, have to renew after each event
133
var watcher = null;
134
package.json
@@ -7,7 +7,7 @@
7
"files",
8
"pointer"
9
],
10
- "version": "0.0.2",
+ "version": "0.0.3",
11
"repository": {
12
"type": "git",
13
"url": "git@github.com:DeadAlready/node-file-pointer"
0 commit comments