Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fn is not a function. (In 'fn()', 'fn' is undefined) #239

Closed
inzerceubytovani opened this issue Oct 23, 2016 · 1 comment
Closed

fn is not a function. (In 'fn()', 'fn' is undefined) #239

inzerceubytovani opened this issue Oct 23, 2016 · 1 comment

Comments

@inzerceubytovani
Copy link

In your file angular2-modal/providers/outside-event-plugin.js - line 79 - 83 -
return zone.runOutsideAngular(function () { var fn; setTimeout(function () { return fn = onceOnOutside(); }, 0); return function () { return fn(); }; });

Error I got: fn is not a function. (In 'fn()', 'fn' is undefined)

My application gives me error fn is not function. That timeout in some cases when I change some variable quickly from undefined to some value gives me that error when I use this variable in template in negative condition : *ngIf="!myFastChangedVariable". When I remove that setTimeout function, error dissapear. It looks like similar problem like error message "Expression has changed after it was checked" but this error message does not appear.

@inzerceubytovani inzerceubytovani changed the title n is not a function. (In 'fn()', 'fn' is undefined) fn is not a function. (In 'fn()', 'fn' is undefined) Oct 23, 2016
@kanitkarIndex
Copy link

I am also having this issue. Have any solutions been found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants