Skip to content

DougReynolds/Sublime-Text-2-Backbone.js-Coffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Sublime-Text-2-Backbone.js-Coffee




###CoffeeScript Scope Snippets Provided in This Package (WIP)

*MODEL*
bme         - Create a Model class 
clear       - Removes all attributes from the model
def         - Specify default attributes for model
esc         - Returns HTML-escaped model attribute
fetch       - Resets the model state from server
get         - Get the current value of an attribute from the model
has         - True if attribute is non-null or non-undefined
id          - Special property of models
idAttrib    - Map a model id attribute
new         - Create an instance model
off         - Remove all previously-bound callbacks
on          - Bind a callback function to an object
set         - Set the current value of a model attribute
json        - Return a JSON copy of model attributes
tr          - Trigger callbacks for the given event
unset       - Remove an attribute

*COLLECTION*

*ROUTER*

*HISTORY*

*SYNC*

*VIEW*

*UTILITY*

Usage

  • Simply clone/download this package, select any, or all, of the snippets and drop them into your Sublime-Text-2-Backbone.js-package directory.

Contact

About

Coffee Snippets for Sublime-Text-2-Backbone.js Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published