Closed ooflorent closed 10 years ago
There is no way to do this. Views are self contained and this is by design.
But defining _
into the model, the view or the adapter should work right?
Because it seems not.
Possibly the detection for what is a valid identifier is broken. That would be a separate issue from global functions. And yes, I think it should work so is likely a bug.
Should I open a new issue?
Yep :) if you can make a failing example that would be best. On Aug 12, 2014 8:48 AM, "Florent Cailhol" notifications@github.com wrote:
Should I open a new issue?
— Reply to this email directly or view it on GitHub https://github.com/component/reactive/issues/153#issuecomment-51933586.
I'm trying to call a function like:
I tried several
dirtyhacks such as:Reactive
prototypeIs there any way to define a function available in all views?
Update: I'm always getting the following error:
But defining
obj._
does not throw...