Skip to content

Instantly share code, notes, and snippets.

@hay
Created January 13, 2013 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hay/4523741 to your computer and use it in GitHub Desktop.
Save hay/4523741 to your computer and use it in GitHub Desktop.
var Module = Stapes.subclass();
var SubModule = Module.subclass();
var module = new Module();
var submodule = new SubModule();
module instanceof Module; // true
submodule instanceof Module; // true
module instanceof SubModule; // false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment