意外と簡単にかけたのでメモしておきます。 ちなみにループなどでjQueryを使用しています。 function CanvasRapper(elm) { if (elm.tagName != 'CANVAS') { return null; } this.elm = elm; this.ctx = elm.getContext('2d'); var callee = arguments.callee; if (!callee.isInited) { var ctx = this.ctx; $.each(ctx, function (name, obj) { if (typeof obj == 'function') { callee.prototype[name] = function () { obj.apply(this.ctx, $.makeArray(arguments)); ret
![AjaxでBBSを作る 〜GA-BBS開発日記〜](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)