Created
June 8, 2012 16:53
-
-
Save ccapndave/2896844 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function hasSuperClass(c:ClassType, searchForClassType:String) { | |
| var currentClassType = c; | |
| do { | |
| if (currentClassType.superClass != null) { | |
| currentClassType = currentClassType.superClass.t.get(); | |
| if (currentClassType.pack.concat([currentClassType.name]).join(".") == searchForClassType) return true; | |
| } | |
| } while (currentClassType.superClass != null); | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment