mozilla

Compare Revisions

bind

Change Revisions

Revision 79964:

Revision 79964 by RickB on

Revision 79965:

Revision 79965 by RickB on

Title:
bind
bind
Slug:
Talk:JavaScript/Reference/Global_Objects/Function/bind
Talk:JavaScript/Reference/Global_Objects/Function/bind
Content:

Revision 79964
Revision 79965
tt13    <p>
14      Another issue on line 11 in Safari (I&nbsp;was running SF5 
 >for windows) meant I needed to change this:
15    </p>
16    <p>
17      "this instanceof nop" to this: "(nop.prototype &amp;&amp; t
 >his instanceof nop)"
18    </p>
19    <p>
20      To test this in safari, execute this line (after adding the
 > bind compatibility code of course):
21    </p>
22    <p>
23      <span class="Apple-style-span" style="border-collapse: sepa
 >rate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-s
 >tyle: normal; font-variant: normal; font-weight: normal; letter-s
 >pacing: normal; line-height: normal; orphans: 2; text-align: auto
 >; text-indent: 0px; text-transform: none; white-space: normal; wi
 >dows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0p
 >x; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations
 >-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-st
 >roke-width: 0px; font-size: medium;"><span class="Apple-style-spa
 >n" style="font-family: Consolas, 'Lucida Console', monospace; fon
 >t-size: 12px; white-space: pre-wrap;">console.log.bind(console, "
 >foo")("bar")</span></span>
24    </p>

Back to History