Skip to content

Commit

Permalink
Updating with changes made in svn repo (or maybe just reflex).
Browse files Browse the repository at this point in the history
  • Loading branch information
jacwright committed Mar 27, 2010
1 parent 2189fa3 commit 071b15c
Show file tree
Hide file tree
Showing 43 changed files with 1,708 additions and 1,051 deletions.
20 changes: 12 additions & 8 deletions project/.flexLibProperties
Expand Up @@ -42,33 +42,37 @@
<classEntry path="flight.injection.IInjectorSubject"/>
<classEntry path="flight.injection.Injector"/>
<classEntry path="flight.list.ArrayList"/>
<classEntry path="flight.list.ArrayProxy"/>
<classEntry path="flight.list.Collection"/>
<classEntry path="flight.list.IList"/>
<classEntry path="flight.list.IListSelection"/>
<classEntry path="flight.list.ISelection"/>
<classEntry path="flight.list.ListSelection"/>
<classEntry path="flight.list.MXList"/>
<classEntry path="flight.log.MessageLog"/>
<classEntry path="flight.log.MessageLogPriority"/>
<classEntry path="flight.net.IResponse"/>
<classEntry path="flight.net.Response"/>
<classEntry path="flight.net.ResponseStatus"/>
<classEntry path="flight.observers.Observe"/>
<classEntry path="flight.progress.IProgress"/>
<classEntry path="flight.progress.Progress"/>
<classEntry path="flight.observers.PropertyChange"/>
<classEntry path="flight.position.IPlayer"/>
<classEntry path="flight.position.IPosition"/>
<classEntry path="flight.position.IProgress"/>
<classEntry path="flight.position.Position"/>
<classEntry path="flight.position.Progress"/>
<classEntry path="flight.selection.IListSelection"/>
<classEntry path="flight.selection.ISelection"/>
<classEntry path="flight.selection.ListSelection"/>
<classEntry path="flight.services.Service"/>
<classEntry path="flight.utils.IMerging"/>
<classEntry path="flight.utils.IValueObject"/>
<classEntry path="flight.utils.ObjectEditor"/>
<classEntry path="flight.utils.Registry"/>
<classEntry path="flight.utils.Singleton"/>
<classEntry path="flight.utils.Type"/>
<classEntry path="flight.utils.ValueObject"/>
<classEntry path="flight.utils.getClassName"/>
<classEntry path="flight.utils.getType"/>
<classEntry path="flight.view.Mapping"/>
<classEntry path="flight.view.Mediator"/>
<classEntry path="flight.view.MediatorMap"/>
<classEntry path="flight.vo.IValueObject"/>
<classEntry path="flight.vo.ValueObject"/>
</includeClasses>
<includeResources/>
<namespaceManifests>
Expand Down
Binary file modified project/bin/flight-framework.swc
Binary file not shown.
2 changes: 1 addition & 1 deletion project/manifest.xml
Expand Up @@ -8,7 +8,7 @@
<component id="MacroCommand" class="flight.domain.MacroCommand"/>
<component id="ScriptCommand" class="flight.domain.ScriptCommand"/>
<component id="CommandHistory" class="flight.commands.CommandHistory"/>
<component id="ValueObject" class="flight.vo.ValueObject"/>
<component id="ValueObject" class="flight.utils.ValueObject"/>
<component id="ObjectEditor" class="flight.utils.ObjectEditor"/>
<component id="ArrayList" class="flight.list.ArrayList"/>
<component id="Collection" class="flight.list.Collection"/>
Expand Down
2 changes: 1 addition & 1 deletion project/src/flexUnitTests/binding/BindTest.as
Expand Up @@ -344,7 +344,7 @@ internal class IntrospectBinding extends Binding
return Binding.describeBindings(value);
}

public static function getBindingEvents(target:Object, property:String):Array
public static function getBindingEvents(target:Object, property:String):Object
{
return Binding.getBindingEvents(target, property);
}
Expand Down
4 changes: 2 additions & 2 deletions project/src/flexUnitTests/binding/BindingTest.as
Expand Up @@ -71,7 +71,7 @@ package flexUnitTests.binding
[Test]
public function testGetBindingEvents():void
{
var events:Array = IntrospectBinding.getBindingEvents(obj1, "str");
var events:Object = IntrospectBinding.getBindingEvents(obj1, "str");
assertEquals(events.length, 1);
assertEquals(events[0], "propertyChange");

Expand Down Expand Up @@ -319,7 +319,7 @@ internal class IntrospectBinding extends Binding
return Binding.describeBindings(value);
}

public static function getBindingEvents(target:Object, property:String):Array
public static function getBindingEvents(target:Object, property:String):Object
{
return Binding.getBindingEvents(target, property);
}
Expand Down
29 changes: 17 additions & 12 deletions project/src/flexUnitTests/binding/ObservingBindTest.as
Expand Up @@ -218,7 +218,7 @@ import flash.events.EventDispatcher;
import flash.utils.Dictionary;

import flight.binding.Binding;
import flight.observers.Observe;
import flight.observers.PropertyChange;


internal class TestObject
Expand All @@ -238,8 +238,9 @@ internal class TestObject

public function set obj(value:TestObject):void
{
_obj = Observe.change(this, "obj", _obj, value);
Observe.notify();
var change:PropertyChange = PropertyChange.begin();
_obj = change.add(this, "obj", _obj, value);
change.commit();
}

[Bindable(observable)]
Expand All @@ -250,8 +251,9 @@ internal class TestObject

public function set bool(value:Boolean):void
{
_bool = Observe.change(this, "bool", _bool, value);
Observe.notify();
var change:PropertyChange = PropertyChange.begin();
_bool = change.add(this, "bool", _bool, value);
change.commit();
}

[Bindable(observable)]
Expand All @@ -262,8 +264,9 @@ internal class TestObject

public function set num(value:Number):void
{
_num = Observe.change(this, "num", _num, value);
Observe.notify();
var change:PropertyChange = PropertyChange.begin();
_num = change.add(this, "num", _num, value);
change.commit();
}

[Bindable(observable)]
Expand All @@ -274,8 +277,9 @@ internal class TestObject

public function set str(value:String):void
{
_str = Observe.change(this, "str", _str, value);
Observe.notify();
var change:PropertyChange = PropertyChange.begin();
_str = change.add(this, "str", _str, value);
change.commit();
}

[Bindable(observable)]
Expand All @@ -286,8 +290,9 @@ internal class TestObject

public function set custom(value:String):void
{
_custom = Observe.change(this, "custom", _custom, value);
Observe.notify();
var change:PropertyChange = PropertyChange.begin();
_custom = change.add(this, "custom", _custom, value);
change.commit();
}

public function clone():TestObject
Expand All @@ -308,7 +313,7 @@ internal class IntrospectBinding extends Binding
return Binding.describeBindings(value);
}

public static function getBindingEvents(target:Object, property:String):Array
public static function getBindingEvents(target:Object, property:String):Object
{
return Binding.getBindingEvents(target, property);
}
Expand Down
12 changes: 7 additions & 5 deletions project/src/flight/binding/Bind.as
Expand Up @@ -23,10 +23,10 @@
////////////////////////////////////////////////////////////////////////////////

package flight.binding
{
import flash.events.IEventDispatcher;
import flash.utils.Dictionary;

{
import flash.events.IEventDispatcher;
import flash.utils.Dictionary;

import mx.core.IMXMLObject;

/**
Expand Down Expand Up @@ -139,7 +139,9 @@ package flight.binding
*/
public static function addListener(target:IEventDispatcher, listener:Function, source:Object, sourcePath:String):Binding
{
target.addEventListener("_", listener);
if (target) {
target.addEventListener("_", listener);
}
return createBinding(target, listener, source, sourcePath);
}

Expand Down

0 comments on commit 071b15c

Please sign in to comment.