Skip to content

Instantly share code, notes, and snippets.

@kangax
Created February 20, 2009 21:23
Show Gist options
  • Save kangax/67701 to your computer and use it in GitHub Desktop.
Save kangax/67701 to your computer and use it in GitHub Desktop.
function F(){ }
F.prototype = {
enable: function() { },
disable: function() { },
isEnabled: function() { }
};
function StyleSheet(){ }
StyleSheet.prototype = new F();
(new StyleSheet()).enable();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment