Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
[B! lazy-evaluation][_.debounce] nabinnoのブックマーク
[go: Go Back, main page]

タグ

lazy-evaluationと_.debounceに関するnabinnoのブックマーク (1)

  • Underscore.js の _.debounce が便利そう · hikarock blog

    「Backbone.jsガイドブック」の読書会2回目。 1章の後半から始めた。underscore.jsのタイマー系の関数が超絶便利そうだった。 debounce throttle delay defer この辺。 重いレンダリング処理とか保存処理のイベント多発をsetTimeoutとかclearTimeoutでがんばってブロックしてたところは_.debounceの方がきれいに書けそう。 REMPのライブラリ保存処理がちょうどこんな感じで、 _.debounceだとこんな感じになる。 ストーリーボードのMarkdownのレンダリングのとこもこれ使ったらいいな、と思ってたらドキュメントにもまんまなこと書いてあった。 For example: rendering a preview of a Markdown comment, recalculating a layout after the

  • 1