Questions tagged [google-closure]

Google Closure is a framework for writing large-scale applications in JavaScript. It includes an extensive library, a linter, a compiler, a template system, and a stylesheet language.

Google Closure is a framework for writing large-scale applications in JavaScript. It includes an extensive library, a linter, a compiler, a template system, and a stylesheet language.

Closure is an Object-Oriented framework which borrows many concepts from Java, such as support for strong typing for compile-time checking, and deep object inheritance hierarchies.

532 questions
18
votes
1 answer

GWT VS Google Closure, what is the difference?

If I understand correctly, both GWT and Google Closure are JS API's for building web applications. What is the difference between them?
MichaelS
  • 7,023
  • 10
  • 51
  • 75
17
votes
7 answers

How can I load my own js module with goog.provide and goog.require?

We are trying to switch the packaging for our project from dojo to google closure, but we haven't had any luck so far. Here is a simple example that illustrates what we are trying to accomplish: …
Lightbeard
  • 4,011
  • 10
  • 49
  • 59
16
votes
2 answers

How do I iterate over an object within a Soy file when using Google closure templates?

I want to create my own template which I can pass an object to, and have the Soy template iterate through the object and pull out the keys and values. If I have and object in JavaScript and call a Soy template: var obj = {'one':'a', 'two':b,…
Curtor
  • 737
  • 2
  • 9
  • 17
16
votes
4 answers

Preventing closure compiler from renaming certain variables

I have a javascript file with a global object that must not be renamed (_gat from the Google Analytics async tracker). This object must not be renamed by the Google Closure Compiler as Google Analytics looks for a variable with this specific…
phidah
  • 5,794
  • 6
  • 37
  • 58
16
votes
2 answers

Why isn't Google's Closure library hosted on their CDN?

Google hosts a number of JavaScript libraries such as jQuery and dojo on their CDN. For some reason, their own Google Closure library does not seem to be included. Is there a hosted version of the Closure library?
mjs
  • 63,493
  • 27
  • 91
  • 122
15
votes
2 answers

html5, angularJS with closure compiler and/or closure library

I'm considering html5, angularJS for data binding and also google closure compiler and the closure library for interactive web applications. Do those work nicely together? Unfortunately there seem to be no detailed reports up to now. I have adobe…
thomre
  • 161
  • 2
  • 7
14
votes
3 answers

Jquery vs Google Closure va GWT Pros & cons for large web application development

I am about to start developing a large web application.Which contains media(video,audio & images) and a large user base. The traffic on website may also goes very high. So here i am a little bit confused the should i use jquery/jquery ui or Google…
Peeyush
  • 4,728
  • 16
  • 64
  • 92
14
votes
3 answers

Google Closure Editor/WYSIWYG

Does anyone have experience with Google Closure Editor/WYSIWYG? I'm thinking of moving from CKEDITOR to Google Closure Editor/WYSIWYG. Ideally I'd love to use the etherpad editor but it doesn't appear that anyone has separated the editor from all…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
14
votes
6 answers

How to use Google's Closure to compile JavaScript

Google just released Closure, which is a compiler to minify JavaScript. On the product site, it says "The Closure Compiler has also been integrated with Page Speed". How do I use Page Speed to compile my web pages JavaScript with Closure? (Or, is…
Ted
  • 555
  • 2
  • 5
  • 5
13
votes
5 answers

How can I prevent the warning 'Property MyProp1 never defined on MyObject'?

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 then when I…
frenchie
  • 51,731
  • 109
  • 304
  • 510
13
votes
2 answers

Drag and drop events in embedded SVG?

Is there any possibility of receiving drag and drop events from SVG elements within a web page? I tried the Google Closure library, to no avail. Specifically, suppose my page contains
12
votes
3 answers

How to auto-generate externs for the Google Closure Compiler

Suppose you are working in a javascript project with several external library dependencies, and want to compile your sources using the Google Closure Compiler in ADVANCED_OPTIMIZATIONS mode. Since in this mode the compiler will rename your code…
ivo
  • 4,101
  • 5
  • 33
  • 42
12
votes
3 answers

How to host the google libphonenumber locally?

During development on my localhost, I am trying to self host the libphonenumber library. I am trying with the following:
blueFast
  • 41,341
  • 63
  • 198
  • 344
11
votes
2 answers

How do I add my own JavaScript libs to ClojureScript?

I want to write a Google Chrome extension, using ClojureScript. With ClojureScript I can use all the Google Closure libs, but afaik access to the Chrome browser is not included in those libs. So I want to wrap all the Chrome stuff in my own…
Maurits Rijk
  • 9,789
  • 2
  • 36
  • 53
10
votes
6 answers

Examples of Google Closure apps outside of google?

I know that Gmail and google+ were all written using google closure, but are there any good examples of websites outside of google that have been made with google closure?
yazz.com
  • 57,320
  • 66
  • 234
  • 385
1
2
3
35 36