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:
@@ -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,9 +87,7 @@ 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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user