Permalink
Browse files

updated bifff again

  • Loading branch information...
1 parent 5c537bf commit 81b5e7786da9ca2b4570a81c172f1d6eb70ed112 @seanhess committed May 11, 2009
Binary file not shown.
@@ -8,7 +8,7 @@
</mx:Script>
<!-- SERVICES :: These could be in another file -->
- <service:Authentication id="auth" app="{app}" nav="{nav}" loginService="{login}" logoutService="{logout}" parse="{authParser}"/>
+ <service:Authentication id="auth" app="{app}" nav="{nav}" loginService="{mockLogin}" logoutService="{logout}" parse="{authParser}"/>
<mx:HTTPService id="login" url="../server/login.php" resultFormat="object"/>
<mx:HTTPService id="logout" url="../server/logout.php" resultFormat="object"/>
@@ -31,7 +31,7 @@
<Inject user="{app.currentUser}"/>
<Inject nav="{nav}"/>
- <Route event="{Login.LOGIN}" call="auth.login(mainView.login)"/>
+ <Route event="{Login.LOGIN}" call="auth.login(mainView.login)"/>
<Route event="{Login.LOGOUT}" call="auth.logout()"/>
</Glue>
@@ -7,6 +7,8 @@
import login.model.Navigation;
import login.model.User;
+ public static const LOGIN:String = "login";
+
[Bindable] public var user:User;
[Bindable] public var nav:Navigation;
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -1,26 +1,17 @@
package net.seanhess.glue
{
- import net.seanhess.bifff.behaviors.Set;
+ import net.seanhess.bifff.behaviors.Inject;
/**
* Injects properties into controllers and views from a controller.
*
* Usage: <Inject myProperty="{mycontroller.value}"/>
* Usage: <Inject child="{myView.list}" dataProvider="{mycontroller.list}"/>
*/
- dynamic public class Inject extends Set implements IGlueAction
+ dynamic public class Inject extends net.seanhess.bifff.behaviors.Inject implements IGlueAction
{
protected var _to:*;
- /**
- * Don't set the style, just throw an error. this is for injection
- * not for looks, dangit!
- */
- override protected function setStyleOnTarget(target:*, property:String, value:*):void
- {
- throw new Error("Could not set property '"+property+"' on target '"+target+"' to value '"+value+"'");
- }
-
public function applyAction(target:*):void
{
this.target = _to || target;

0 comments on commit 81b5e77

Please sign in to comment.