Closure


Google’s closure compiler compiles JavaScript into compact, high-performance code. Learn how to use closure to check syntax, variable references, and types, and find out about common JavaScript pitfalls.


Thursday, December 24th, 2009

Closure Lite

Category: Closure, Google

Michael Bolin formerly of Google has created Closure Lite as a way to let developers get their feet wet in the Closure library without having to go into the compiler and the like (but they should do that eventually!). Closure Lite itself consists of the following subset of APIs: goog.array goog.Disposable goog.dispose goog.dom goog.dom.DomHelper goog.events.NodeType Read the rest…

Posted by Dion Almaer at 6:39 am
5 Comments

++---
2.2 rating from 49 votes

Friday, November 13th, 2009

Javascript Inheritance Patterns: Learning from Closure

Category: Closure, JavaScript

The library portion of Google’s Closure not only gives us a new API to work with, but also adds another piece of mature code to the public domain, where it can be studied and scrutinized. Something we might normally have done with View Source if not for the compression techniques in effect. A new article Read the rest…

Posted by Michael Mahemoff at 5:04 pm
2 Comments

++---
2.3 rating from 37 votes

Tuesday, November 10th, 2009

Closure Graphics Fun

Category: Closure

Stephen Thomas has been experimenting with Closure and the graphics libraries: This does something similiar to what I do on Stark, my visual mud project that uses the Processing JS library and the HTML 5 <canvas> element, but instead of creating a draw function that is executed x amounts per seconds, you just call a Read the rest…

Posted by Dion Almaer at 6:45 am
5 Comments

+----
1.6 rating from 73 votes