Problem with window.addEvent, Mootools and code inspection
Hi folks!
I'm trying out a trial of Phpstorm. So far it looks quite good, but I hit a couple of snags today. I hope I just have setup something wrong.
I use the mootools framework which gives a method of addEvent for the window Element. I have used the code below in an html file:
<script src="js/mootools-core-1.3.2.js"></script>
<script src="js/mootools-more-1.3.2.1.js"></script>
<script>
window.addEvent('domready', SiteInit.domReady );
</script>
When I fire up the code inspector it gives an error: "Unresolved function or method addEvent() at line 14".
Is there a way to get the code inpector to accept the method?
Edit:
Mootools js-files also fire up a magnitude of errors and warnings. Is possible to exclude those files permanently from error checking? I wasn't able to find a solution for this.
Thanks,
Juhana
请先登录再写评论。
Hello juhana,
Yes, you could specify a custom scope and exclude some files/directories from error checking.



'Code' -> 'Inspect Code':
Create a new custom scope(local or shared):
Enable 'Show Files' option and exclude specified files from the created scope:
Thank you for feedback!
Wow!
That's a pretty detailed guide you have there. Thanks!
I'll try it right away.
Juhana
Hi,
Thank you for the good support. Your support on the forums and mail has helped me to get everything working as I want. So I went on and bought PhpStorm.
Keep up the good work,
Juhana