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
-
MadRabbit July 8th, 2011 @ 10:44 AM
- State changed from new to resolved
it should be
RightJS(f).bind(myScope);
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RightJS Core Tickets