Prototype framework

HI!

WebStorm should know about classes and methods of the Prototype framework.

But I get "Unresolved method" for Object.create() and Object.clone().

Thomas

5 comments
Comment actions Permalink

Typo. This should have been: Class.create() and Object.clone().

0
Comment actions Permalink

Please attach Prototype library to your project (e.g. having debug version of it would be fine). Alternatively you can attach it as specified in following blog post http://blogs.jetbrains.com/webide/2010/11/working-with-javascript-libraries-in-phpstorm-webstorm/

0
Comment actions Permalink

Thanks. I tried this with 2.0 EA.  I attached prototype.js file as described in the blog entry.

Object.clone() is not underlined, but code completion does not know it.

I also tried with another library with the same result. Underlines are gone, but code completion does not know the methods.

BTW:
Can libraries also be attached in version 1.0.2 of WebStorm?

0
Comment actions Permalink

Got it! I had to enable the libs for the project dir in the usage scope definition in settings.

Remaining question: How to add libs in version 1.0.2.

Thanks!

0
Comment actions Permalink

JavaScript library is feature under development, it is not available for WebStorm 1.0.
For later case you can paste Prototype source in file under your directory, this should work same way.

0

Please sign in to leave a comment.