2010-06-22から1日間の記事一覧
Learning jQueryの2010.3.5の記事 Using Delegate and Undelegate in jQuery 1.4.2 「Event Delegation with jQuery」(斜め読み内容)と似たテーマで書いてる。 以下斜め読んだ内容 .live()は色々議論のあるメソッド On jQuery's live() jQuery.live / jQue…
#help-btnクリックしたら、openHelp()実行 #save-btnクリックしたら、saveDocument()実行 #undo-btnクリックしたら、undoChanges()実行 というコードをEvent Delegation使って実装。 Before: document.onclick = function(event){ //IE doesn't pass in the…
Brandon Aaronの2009.6.24のエントリ Understanding the Context in jQuery jQuery1.3時代に書かれた内容だが賞味期限は切れていない Selectors API(ex.$("a"))などで検索範囲を絞り込むために使う第二引数("Context")の誤用が多い 正しく理解しないと、…