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

3 comments
Comment actions Permalink

Hello juhana,

Is possible to exclude those files permanently from error checking?

Yes, you could specify a custom scope and exclude some files/directories from error checking.

'Code' -> 'Inspect Code':
specify_custom_scope.png

Create a new custom scope(local or shared):
new_local_scope.png

Enable 'Show Files' option and exclude specified files from the created scope:
enable_show_files_and_exclude_specified_files.png

Thank you for feedback!

0
Comment actions Permalink

Wow!

That's a pretty detailed guide you have there. Thanks!
I'll try it right away.

Juhana

0
Comment actions Permalink

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

0

Please sign in to leave a comment.