Prototype framework Follow Thomas Created January 02, 2011 00:21 HI!WebStorm should know about classes and methods of the Prototype framework.But I get "Unresolved method" for Object.create() and Object.clone().Thomas
Typo. This should have been: Class.create() and Object.clone().
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/
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?
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!
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.