2013-07-30
■
jottit で tombloo のコード読んでいるけど css の設定できないので不便。とにかく pre の表示がダメ。userstylesheet で見易いように変更しているけど、なんか間違っている気がする。じゃあ jottit じゃなくて、何を使えばいいんだろ
■ bind
Function.prototype.bind - JavaScript | MDN
Function.prototype.bind is an ECMAScript 5 addition; as such it may not be present in other implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of bind in implementations which do not natively support it.
if(!function(){}.bind){ Function.prototype.bind = function(){ var me = this , shift = [].shift , he = shift.apply(arguments) , ar = arguments return function(){ return me.apply(he, ar); } } }
■
なんか、メチャメチャ、スマートなコードだな。
■
もし、関数が non-strict mode のコードで、null か undefined が指定された場合は this の値は global object になります。
■
forked: applyの第一引数がnullだとグローバルになるか実験 - jsdo.it - Share JavaScript, HTML5 and CSS
(function () { alert(window === this); }).apply(null); // true
■
http://suwaowa.blogspot.jp/search?updated-max=2013-07-31T00:00:00%2B09:00
隣島へ契約に
契約、またキレかけてなんとか踏みとどまる。
ビール呑みたい
ビール呑みたい
かえる
かえった
新居の窓<海
■
ケンマット、たたかっているな。
■
海、いいなあ。