rafalszemraj / fabrication

Automatically exported from code.google.com/p/fabrication
2 stars 1 forks source link

Argument error in org.puremvc.as3.multicore.utilities.fabrication.components.AirApplication.as #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Refactor the TabNavigatorDemo MXML to run as <fab:AirApplication> rather 
than <fab:FlexApplication>
2.
3.

What is the expected output? What do you see instead?

Application does not compile. constistenly throws Error: 

Error: Unable to perform reflection for classpath 
view.TabNavigatorDemoMediator. Check if getClassByName is defined on the main 
fabrication class

What version of the product are you using? On what operating system?
0.6 (via SVN today), Flex Builder 3, Mac OS X 10.5.8

Please provide any additional information below.

Simple error - lines 169 - 171 are currently as follows:

public function getClassByName(classpath:String):Class {
    return getDefinitionByName(name) as Class;
}

But should be:

public function getClassByName(classpath:String):Class {
    return getDefinitionByName(classpath:String) as Class;
}

("classpath" as function argument, not "name")

Cheers!

Original issue reported on code.google.com by maneatin...@gmail.com on 10 Dec 2009 at 2:36

GoogleCodeExporter commented 9 years ago
Sorry - error in my fix!!!

Should be:

public function getClassByName(classpath:String):Class {
    return getDefinitionByName(classpath) as Class;
}

Original comment by maneatin...@gmail.com on 10 Dec 2009 at 2:37