Questions tagged [google-closure-library]

Closure Library is a JavaScript framework used by Google and one of three components to Closure Tools, an open source toolset to aid with developing front-end web applications

Important links:

374 questions
0
votes
1 answer

Closure Library: good.net.XhrIo.send not working on Safari

goog.net.XhrIo.send in Closure Library outputs "undefined" error in Safari v8.0.5, whereas it works fine on Chrome and FireFox. What can I do to solve this error? What are the possible causes? Static Access goog.net.XhrIo.send('filename.json',…
rhythm
  • 469
  • 9
  • 24
0
votes
0 answers

Closure Compiler: expressions are not callable

It's been a while since I've used Closure library + advanced mode with the compiler. My compilation is outputting this: ({})(); and I'm getting this compilation warning: Error: index.js:4: WARNING - {} expressions are not callable…
0
votes
1 answer

Is there a calendar that can select a range of dates in google closure library

in my project I'm using google closure. Is there in google closure any calendar component that allows selecting range of dates? Thank you
0
votes
1 answer

How to goog.require JQuery from CDN?

I am currently experimenting with different JavaScript module formats and loader and also wanted to try out Google Closure. I've got the basic example working, but can't figure out how to use goog.require for an external library. Let's take JQuery…
lexicore
  • 42,748
  • 17
  • 132
  • 221
0
votes
1 answer

ClojureScript Browser Repl using script Element in head

I am (still) new to ClojureScript an understand the browser repl makes use of an iframe. I am trying to introduce the ClojureScript application in an existing app and it would be convenient to add the generated JavaScript to in the head of the…
0
votes
1 answer

How to distribute a library which uses Closure-library without including any of the actual Closure-library source?

I've recently created a JavaScript library using Google's Closure Compiler: https://github.com/bvaughn/task-runner I intend for this library to be used by applications that also require the full Closure Library, and so I want the built version of my…
bvaughn
  • 13,300
  • 45
  • 46
0
votes
1 answer

Google closure timezone

I am using google closure, I am currently trying to use the timezonelist class which is http://docs.closure-library.googlecode.com/git/local_closure_goog_locale_timezonelist.js.html The thing is that any functions in this class depends on…
0
votes
1 answer

Fail to get mouse move event

I'm using Google closure library and registering for click and mouse move event. I get the click event, however Mouse move event doesn't come. This is observed for Chrome browser, get the same event in Firefox
Abhinav
  • 191
  • 1
  • 3
  • 16
0
votes
1 answer

How to use the Closure-Library to encode with AES?

I would like to use the Closure-Library to encode data with AES. When studying the library I found this aes-test: https://github.com/google/closure-library/blob/master/closure/goog/crypt/aes_test.js and the implementation with following…
0
votes
1 answer

how to invoke various goog.i18n.TimeZone Instance Methods in my javascript file?

In order to invoke various instance methods of goog.i18n.TimeZone, I've tried pretty good number of combinations of goog.require() and goog.inherits() but still didn't reach the goal. Please can someone let me know what should be the correct way to…
0
votes
2 answers

File Upload using google closure

Plz throw some light on uploading file using google closure (single file and multiple files). I am using spring mvc controller at server side to save the file. I went through this article on stackoverflow but the url mentioned there is obsolete.…
gokul
  • 383
  • 1
  • 8
0
votes
0 answers

Obtain Javascript object from the dom element in google closure

Is there a way to obtain the underlying object from dom element. For instance. I have a base class which renders some buttons using goog.ui.CustomButton. In the child class I want to get underlying goog.ui.CustomButton object through the generated…
Anupam Saini
  • 2,431
  • 2
  • 23
  • 30
0
votes
1 answer

Google Closure, Response Always Empty

I'm trying to get together a basic example of how to use Google Closure to minify JS. I can't seem to get this to work at all. I'm trying to follow these…
VPel
  • 413
  • 5
  • 12
0
votes
1 answer

plovr warning on new closure .base()

I checked out the latest plovr and added closure to my project using bower. while compiling the code with closure-compiler.jar in advanced_compilation works without any error or warning, using plovr gives the following…
msin
  • 23
  • 1
  • 5
0
votes
1 answer

Using Closure Stylesheets with Plovr in serve mode

i am using plovr for developing a closure application. and that i am often using plovr in serve mode. from this source code of plovr and this post from the author it seems that plovr also supports compiling closure stylesheets (gss). with that in…
Tanvir
  • 542
  • 7
  • 16