Ok, you are probably right. Thanks for the help.

Daniel

-----Original Message-----
From: thron7 [mailto:[email protected]] 
Sent: Monday, October 29, 2012 10:12 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Attaching custom non-OOP libraries to project


On 10/29/2012 09:53 AM, Krejčí Daniel wrote:
> 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.

But that's the canonical way. You are not ignoring a problem, but you have to 
tell the generator somehow that the global 'deferred' is ok and it need not 
warn about it. You do this either locally with the @lint syntax (if you don't 
like the word 'ignore', just think of it as 'allowedGlobal'), or by overriding 
the "lint" job in config.json, adding 'deferred' to lint-check/allowed-globals 
[1].

T.

[1]
http://manual.qooxdoo.org/2.0.x/pages/tool/generator_config_ref.html#lint-check


------------------------------------------------------------------------------
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

Reply via email to