2008-02-09から1日間の記事一覧

prototype.jsソース分析

Enumerable近辺を理解するために bindを把握する。prototype.jsを使わずに必要部分を抜き出してみる。 以下をコピペで動作します。(そのはず;) <script> Object.extend = function(destination, source){ for(var p in source){ destination[p] = source[p]; } retu…