Skip to content

Instantly share code, notes, and snippets.

@mapserver2007
Created March 14, 2013 13:53
Show Gist options
  • Save mapserver2007/5161481 to your computer and use it in GitHub Desktop.
Save mapserver2007/5161481 to your computer and use it in GitHub Desktop.
Mixjs.module("Iphone", {
});
Mixjs.module("Feature", {
getName: function() {
return "garake-";
}
});
var obj = Iphone.mix(Feature);
obj.getName(); // プロトタイプチェーン
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment