#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| function throttlePromise(operation) { | |
| var promise = null; | |
| return function() { | |
| if (!promise) { | |
| promise = operation.apply(this, arguments).finally(function() { | |
| promise = null; | |
| }); | |
| } |
| var myModel = new Backbone.Model(attributes, {options}, anything-else-passed-to-initialize-function); | |
| /* | |
| attributes = {data:value, data:value} or [value,value] | |
| options = { | |
| collection: {}, | |
| url: '', | |
| urlRoot: '', | |
| parse: boolean | |
| } |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync