Description:
Welcome! Use this group to give feedback and discuss ways of improving Closure Library. Some suggested topics include ideas for new features, improvement of existing features and questions or comments around the high-level design of Closure Library.
|
|
|
how to tell if an object is an instance of a class or one of its subclasses
|
| |
Is there a way to check if an object is an instance of a class or one of its subclasses? goog.typeOf() only gets me the exact class name. For example if a storage variable contains an instance of goog.storage.ExpiringStorage or one of its subclasses then I want to use the three-argument constructor, but if it isn't then I need to use the... more »
|
|
trivial patch for compiler errors
|
| |
I'm getting these errors from the compiler (with VERBOSE): _closure-library\closure\goog\ events\eventhandler.js:180: WARNING - Bad type annotation. Unknown type goog.events.EventWrapper * @param {goog.events.EventWrapper} wrapper Event wrapper to use. ^ _closure-library\closure\goog\ events\eventhandler.js:248: WARNING - Bad... more »
|
|
allowing a class or any of its subclasses
|
| |
I'm trying to pass a couple of constructors to a class so that it can internally create the instances, but the JSDoc notation is causing me problems. When I try to compile this: /** ... /** .../** ...I get this error from the Closure Compiler: filevision\storage\storage.js: 102: WARNING - actual parameter 1 of... more »
|
|
Mark down editor for Google Closure
|
| |
Hi all,
Before I venture into porting an existing Mark Down editor e.g EpicEditor
to work as a Closure component,
[link]
thought I should ask if anyone is aware of another projects that's already
trying to do this?
Thanks a lot.
Devraj... more »
|
|
closurebuilder, uncompiled dev environment
|
| |
The closurebuilder tool has its doc here: [link] The section "Resolving Closure Library Dependencies" shows how to create a sequentially correct .js file list but isn't very explicit about how to use the list. I think I have resolved this but am noting my solution here for feedback.... more »
|
|
module question
|
| |
I'm writing a web app that is made up of several pages, all of which make use of the Closure Library. Should I be compiling all of the js files together into one file or compiling a separate js file for each page? For example if my uncompiled source consists of page1.js and page2.js should I compile them both down to allpages-compiled.js or should I be... more »
|
|
require() issue - TypeError - newbie question
|
| |
I have a *require('goog.editor.Seamless Field');* statement at the top of my js file. When I write *var test = goog.editor.SeamlessField;* further below in the file, I get a *TypeError: goog.editor is undefined* (this is not compiled). However, when I write the* var test..*. statement inside a *document.ready*function, it works.... more »
|
|
disposing things that exist for the lifetime of the page
|
| |
Do I need to dispose of things that exist for the lifetime of the page? For example - the page loads and I create a goog.ui.TableSorter. It's going to be needed until the user navigates away from the page, at which point everything will be deleted anyway. Do I still need to explicitly dispose of it?... more »
|
|
submitting a trivial patch
|
| |
I found what I think is a bug in the Closure Library. After submitting it to the issue tracker (560<[link]>) I found what I think is a solution - to add .goog-css3-button-checked to ../css/css3button.css. It's a pretty trivial change, but I'd like to be a good citizen and submit... more »
|
|
|