Prototype.js 風の Class を書きたいが、ライブラリ全体は読み込みたくない、というときのために、必要最低限のコードを抜き出してみた。要jQuery。 var Class = (function() { function subclass() {} return { create: function(parent) { function klass() { this.initialize.apply(this, arguments); } var index = 0; if(jQuery.isFunction(parent)) { index = 1; subclass.prototype = parent.prototype; klass.prototype = new subclass; } for(; index < arguments.length; ++index)

