I use Closure Compiler on my sources and recently decided to enable the most strict mode via --jscomp_warning=reportUnknownTypes. Alas, it triggered a lot of warnings inside the goog.base itself! I've fixed all the problems in my own code and now...
I have some HTML that contains a JSON string. In the on DOM ready callback, I have something like this:  MyObject = JSON.parse($('#TheJsonString').html());   Later in my code, I write something this:  var SomeVar = MyObject.MyProp1;   And the...
YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better....
How can I test if an JavaScript object is an implementation of an interface using the Google Closure inheritance mechanism?    I could not find any hint of my.Animal in the objects created via new my.Dog() and object instanceof my.Animal didn't w...
I need to use the Google Closure compiler.jar to minify a huge project I am working on.  I have multiple js files that I want to compile into a single game.min.js file.  I know I can use the following:  java -jar compiler.jar --js file1.js --js file2...
I am trying to make externs for the Google Closure Compiler for types that have no constructor.  I have tried the following, but it gives me a Bad type annotation. Unknown type WindowsMediaActiveX.Cdrom error because nothing tells the compiler that W...
I keep getting the warning mentioned above but can't figure out why. I've added deps.js and deps.js contains a reference to the type.  Here is the offending code:  goog.provide("MyCompany.MyApp.dom");   MyCompany.MyApp.dom.getArticleA...
I have a website and my REST api server.  I do ajax post request to the REST server to create new model. Answer for this request will be "HTTP/1.1 201 Created" response with header "Location: http://myapi.com/some/path/111" But I get...
In November 2009 Google announced the release of Closure Tools which include the Closure Library.  According to this post google closure library contains some battle-hardened parts and others more experimental.  Could folks with experience using goog...
I've been using the google javascript closure library for a variety of components, and I've also used its dependency management. I'm curious as to how that compares to using requirejs for dependency management. Specifically, is there a pa...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.