Well thron, problem is, that lint isn't reporting warning from deferred source files itself, but in places where I want to use it's objects. I should have been more precise on this, sorry about that.
"Use of undefined or global identifier 'deferred'" That library script creates object window.deferred which contains necessary stuff, so it's sort of namespace, but not for lint in qooxdoo. In code i have to use it like "new deferred.Deferred()". That's why i have been asking if it cannot be solved through Manifest.json and somehow register "deferred" as namespace. I had found out little solution using "@lint ignoreUndefined(deferred)". It works, but ignoring problems never seemed to me like real solution. Daniel -----Original Message----- From: thron7 [mailto:[email protected]] Sent: Friday, October 26, 2012 9:03 PM To: qooxdoo Development Subject: Re: [qooxdoo-devel] Attaching custom non-OOP libraries to project That's easy. If you deploy the "add-script" key, you can basically place the corresponding script file anywhere you want (as long as its URI is accessible to the running app). A good place is your app's source/resource/<namespace> path. This way it doesn't get linted at all (resources are not lint checked). Add a #asset(<namespace>/path/to/deferred.js) to your main class, so the file gets copied to the build version as well. This way you can use the same add-script directive for both source and build. T. > Hello everyone, > > I have kinda newbish question. I would like to attach library > https://github.com/heavylifters/deferred-js to my qooxdoo application > build. It's support for promise object which I really miss in qooxdoo. > It's mostly old fashioned javascript using prototype feature. > > For now i had used "add-script" in config.json which makes the library > accessible and fully working. However checking with Lint gives ugly > notices which i would like to go away. > > So is there some other way than rewriting whole library to qooxdoo > class system ? I was trying to use Manifest.json, but it's probably > not the right way, because I cannot tell there which file to load, or can I ? > > Thanks for the help. > ---------------------------------------------------------------------- > -------- Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite > for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct__________________________________ > _____________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ The Windows 8 Center In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
