ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Google Closure Library snippets

by closureplease ALL

Sublime 2 snippets for the Google Closure Library

Labels snippets

Details

  • 2014.01.24.11.02.25
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 5K
  • Win 3K
  • Mac 1K
  • Linux 716
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Google Closure Library Snippets

Sublime plugin with snippets for the Google Closure Library

Install

Install with Package Control. Search for: Google Closure Library Snippets.

Getting started

Just type cl on a javascript document and work with autocomplete.

The snippets are namespaced based on functionality, at most you'll have to type 4 chars and Enter:

snippetCategoryDescription
clareach Arrays goog.array.forEach()
clevlisten Events Event listener (goog.event.listen())
clevdispatch Events Dispatch an event, verbose version
clevcb Events Callback function declaration for events, including block docs
cldispose Generic dispose internal declaration (.disposeInternal = function())
clfn Generic Default function declaration with a logger
clsingle Generic Singleton declaration (goog.addSingletonGetter())
cltypedef Generic A very verbose type definition with weird annotation cases
clenum Generic Enum declaration
clprov Generic goog.provide();
clreq Generic goog.require();
clclassev New filesNew class boilerplate with events inheritance
clobjeach Objects goog.object.forEach()

Contributing

I am using this package as a helper for my workflow with Closure Library, feel free to do the same by submitting snippets that you use in yours.

License

MIT License © Thanasis Polychronakis