Permalink
Browse files

Allow zero interval to disable runtime.json file

  • Loading branch information...
1 parent 8531f88 commit 673af8a1297b6abaa4f2c4d00abd53d805678f45 Loren West committed Aug 10, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 LICENSE
  2. +1 −1 lib/config.js
View
@@ -1,4 +1,4 @@
-// Copyright 2011, Loren West
+// Copyright 2012, Loren West and other contributors
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
@@ -16,4 +16,4 @@
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-// IN THE SOFTWARE.
+// IN THE SOFTWARE.
View
@@ -421,7 +421,7 @@ Config.prototype.makeImmutable = function(object, property, value) {
Config.prototype.watchForConfigFileChanges = function(interval) {
// Turn off any prior watching
- var t = this, watchInterval = interval || FILE_WATCHER_INTERVAL;
+ var t = this, watchInterval = (typeof interval === 'undefined' ? FILE_WATCHER_INTERVAL : interval);
if (FileSystem.watch) {
if (runtimeJsonWatcher) {
runtimeJsonWatcher.close();

0 comments on commit 673af8a

Please sign in to comment.