Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created June 7, 2012 16:08
Show Gist options
  • Select an option

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

Select an option

Save ccapndave/2889699 to your computer and use it in GitHub Desktop.
private function hasSuperClass(c:ClassType, searchForClassType:ClassType) {
var superClass = c;
do {
superClass = superClass.superClass.t.get();
if (superClass == searchForClassType) return true;
} while (superClass != null);
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment