Actually, let's only allow suppressing flushing.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5690 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-03-24 00:30:27 +00:00
parent 195d764347
commit 904be81707
+1 -4
View File
@@ -79,8 +79,7 @@ public class Config extends EventDispatcher
/** /**
* Returns the value specified. * Returns the value specified.
*/ */
public function setValue ( public function setValue (name :String, value :Object, flush :Boolean = true) :void
name :String, value :Object, notify :Boolean = true, flush :Boolean = true) :void
{ {
_data[name] = value; _data[name] = value;
if (flush && _so != null) { if (flush && _so != null) {
@@ -88,10 +87,8 @@ public class Config extends EventDispatcher
} }
// dispatch an event corresponding // dispatch an event corresponding
if (notify) {
dispatchEvent(new ConfigValueSetEvent(name, value)); dispatchEvent(new ConfigValueSetEvent(name, value));
} }
}
/** /**
* Remove any set value for the specified preference. * Remove any set value for the specified preference.