diff --git a/src/as/com/threerings/util/Config.as b/src/as/com/threerings/util/Config.as index f7cdbdaa2..51f552c9c 100644 --- a/src/as/com/threerings/util/Config.as +++ b/src/as/com/threerings/util/Config.as @@ -79,15 +79,18 @@ public class Config extends EventDispatcher /** * Returns the value specified. */ - public function setValue (name :String, value :Object) :void + public function setValue ( + name :String, value :Object, notify :Boolean = true, flush :Boolean = true) :void { _data[name] = value; - if (_so != null) { + if (flush && _so != null) { _so.flush(); // flushing is not strictly necessary } // dispatch an event corresponding - dispatchEvent(new ConfigValueSetEvent(name, value)); + if (notify) { + dispatchEvent(new ConfigValueSetEvent(name, value)); + } } /**