tag:blogger.com,1999:blog-2437909874160353836.post1022065478972077188..comments2024-02-07T13:13:42.430-08:00Comments on Closure Tools Blog: This Var is My VarUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2437909874160353836.post-1996306553423907862010-09-15T13:53:48.280-07:002010-09-15T13:53:48.280-07:00It'd be nice if there was just a simple commen...It'd be nice if there was just a simple comment or something for declaring externals. <br />"globals: jQuery, util"<br /><br />It feels really awkward to define the function again.Jethro Larsonhttps://www.blogger.com/profile/03966987847108200955noreply@blogger.comtag:blogger.com,1999:blog-2437909874160353836.post-29899826453745410102010-09-01T14:48:16.062-07:002010-09-01T14:48:16.062-07:00Pitfalls, I agree. I believe Google maintains thei...Pitfalls, I agree. I believe Google maintains their own Closure library that has no warnings (from reading this post). The one that is open sourced is different, they keep pushing stuff from internal to external is my bet, that is why we see some missing stuff and warnings.Anonymoushttps://www.blogger.com/profile/09174807957392611061noreply@blogger.comtag:blogger.com,1999:blog-2437909874160353836.post-72292188844685240002010-09-01T00:38:00.949-07:002010-09-01T00:38:00.949-07:00JavaScript sure has some pitfalls :(JavaScript sure has some pitfalls :(George Moschovitishttps://www.blogger.com/profile/04736280934738427219noreply@blogger.comtag:blogger.com,1999:blog-2437909874160353836.post-16600500132575283832010-08-30T14:14:33.937-07:002010-08-30T14:14:33.937-07:00That'll be really helpful, I always try to enf...That'll be really helpful, I always try to enforce a strict coding discipline when dealing with JavaScript. But keep in mind that even Closure Library itself produces a lot of warnings. For example I get this with most recent version of the library:<br /><br />goog/ui/controlrenderer.js:298: WARNING - Access to protected property setStateInternal of goog.ui.Control not allowed here.<br /> [exec] control.setStateInternal(state);<br /><br />:)trooperhttps://www.blogger.com/profile/13353010400876056397noreply@blogger.com