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

Getting warning "dangerous use of this in static method" #90

Open
madvas opened this issue Sep 1, 2016 · 2 comments
Open

Getting warning "dangerous use of this in static method" #90

madvas opened this issue Sep 1, 2016 · 2 comments

Comments

@madvas
Copy link

madvas commented Sep 1, 2016

I get following warnings from this library when I compile clojurescript with advanced optimizations

Sep 01, 2016 2:40:37 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/matus/www/platform/target/cljsbuild-compiler-0/om_bootstrap/mixins.js:97: WARNING - dangerous use of this in static method om_bootstrap.mixins.set_listener_mixin.componentWillMount
var this26966 = this;
                ^

Sep 01, 2016 2:40:37 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/matus/www/platform/target/cljsbuild-compiler-0/om_bootstrap/mixins.js:104: WARNING - dangerous use of this in static method om_bootstrap.mixins.set_listener_mixin.componentWillUnmount
var this26967 = this;
                ^

Sep 01, 2016 2:40:37 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/matus/www/platform/target/cljsbuild-compiler-0/om_bootstrap/mixins.js:163: WARNING - dangerous use of this in static method om_bootstrap.mixins.set_listener_mixin.set_listener
var this26968 = this;
                ^

@daonsh
Copy link

daonsh commented Nov 23, 2016

me too, how can I disable this warning?
But not using om.

@sritchie
Copy link
Contributor

Hey all,

We've been seeing this for a long time; I'm not sure how to get rid of it. It might be taken care of by a version upgrade in one of our dependencies. We'd love a PR if you do happen to figure it out. Thanks!

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

3 participants