Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created June 8, 2012 16:53
Show Gist options
  • Select an option

  • Save ccapndave/2896844 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/2896844 to your computer and use it in GitHub Desktop.
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