#470 ✓resolved

Function.bind not working in safe mode

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

// 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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket