Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Function.bind not working in safe mode

#470

// include right-safe.js

var myScope = { foo: 'bar' },
    f = function () { console.debug("my scope is: " + this); },
    fs = RightJS.bind(f, myScope);

fs(); // does nothing, returns myScope

When I try RightJS.Function.bind(f, myScope) (I'm not sure what the difference is), I get a syntax error: missing ] after element list. Confirmed in both FF4 as Chrome 12.

Reported by n3rd · June 2nd, 2011 @ 03:52 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • State changed from new to resolved

    it should be RightJS(f).bind(myScope);

    July 8th, 2011 @ 10:44 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.