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
0
votes
1 answer

TypeError: contactList3 is undefined in soy compilation

I'm passing data to closure template(soy) via Javascript (json) but getting the about error in firebug. // Simple html that starts the whole process Gigya Social Demo - getContacs
drecute
  • 748
  • 4
  • 11
  • 29
0
votes
1 answer

Closure: --namespace Foo does not include Foo.Bar, and related issues

I have a rather big library with a significant set of APIs that I need to expose. In fact, I'd like to expose the whole thing. There is a lot of namespacing going on, like: FooLibrary.Bar FooLibrary.Qux.Rumps FooLibrary.Qux.Scrooge .. Basically,…
miracle2k
  • 29,597
  • 21
  • 65
  • 64
0
votes
2 answers

Properly type instance variables with closure compiler

I cannot get to properly type the following piece of code: /** *…
Mad Echet
  • 3,723
  • 7
  • 28
  • 44
0
votes
1 answer

limejs int step installation issue with closure

I already has gitbash on windows 7. I installed Python, also added Environment path to C:/python33 After cloning limejs. When type the 3rd step from limejs basics. https://github.com/digitalfruit/limejs I get following error. Welcome to Git (version…
STEEL
  • 8,955
  • 9
  • 67
  • 89
0
votes
1 answer

Google Closure add onclick to button after adding this button with custom editor plugin

I am making a custom plugin for the editor provided by Google Closure. The plugin makes it able to add a button. I am having problems by setting an onclick on the button, the other values are nicely set. button.innerHTML =…
0
votes
1 answer

Google closure - non overlapping tiled rectangles

I'm trying to use google closure to write an application that covers a region of a plane with non-overlapping rectangles. One requirement I have is to be able to take a point on the plane (potentially with any floating-point coordinates) and…
Jules
  • 14,841
  • 9
  • 83
  • 130
0
votes
0 answers

Play! Framework 2.1.1 and Google Closure - SIMPLE_OPTIMIZATIONS

I want to use Simple Optimization from Google Closure in Play! (using Scala) I searched a while now for solutions to do that. First thing I found is to put following in Build.scala: val main = play.Project(appName, appVersion,…
0
votes
1 answer

Google Closure — XhrIO: getting URL of redirection

I'm using Google Closure's Xhrio facilities to send a POST request to a URL. When the response to this request is a 302 redirect, I'd like to redirect the user's browser to the URL being redirected to. I've tried calling getLastUri on the object…
Matthew H
  • 5,831
  • 8
  • 47
  • 82
0
votes
1 answer

How do I disable the combo box's input?

I'm using this demo: http://closure-library.googlecode.com/git/closure/goog/demos/combobox.html But I don't need user input, I've tried to disable it by this: combobox.getInputElement().disabled = "disabled"; But it won't work in IE6/IE7 (Didn't…
WoooHaaaa
  • 19,732
  • 32
  • 90
  • 138
0
votes
2 answers

Variable loses value when referenced a second time

I have some Ajax that gets info from a database and stores it in an array called targetVocab. This info is used to set the value of vocab when setVocab() is called. This works fine the first time, but when the play again button is hit and setVocab…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
0
votes
2 answers

TypeError from Google Closure compiled file

I have a Javascript file compiled with the Google Closure compiler that gives me this error TypeError: f is undefined. When I look at the compiled code it's impossible to understand but a chunk of it is commented out. I'm really stumped on why I'm…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
0
votes
2 answers

Load info from a DB into a Javascript game

I'm trying to use Ajax to pull info from a Database for an HTML 5 game. As you can see from the code below, I want to echo JavaScript in the PHP so that it pushes variables stored in the database into the arrays 'rawVocab' and 'optionVocab'. But…
niftygrifty
  • 3,452
  • 2
  • 28
  • 49
0
votes
1 answer

How to call an EventType on a goog.ui.tree.Basenode?

I am constructing a tree using the Google Closure Library. Now I want the nodes to expand on a single mouseclick, but I seem not to get it working. I've tried calling goog.ui.component.EventType.SELECT, but it won't work. At my tree-component class…
0
votes
1 answer

Creating on popupmenu on a right-click(contextmenu) event on a document not working as expected

I'm trying to listen to a right-click event on a document, on which a pop-up menu (goog.ui.popupmenu) should be created. The very first time, the menu is created on right-click, but after that its created even on left clicks. I tried detaching the…
SherinThomas
  • 1,881
  • 4
  • 16
  • 20
0
votes
1 answer

Bad type annotation. Unknown type

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…