Skip to content

Instantly share code, notes, and snippets.

@KOBA789
Forked from mactkg/problem.js
Created November 28, 2014 16:06
Show Gist options
  • Save KOBA789/c96c1c91c1d4470dc2e6 to your computer and use it in GitHub Desktop.
Save KOBA789/c96c1c91c1d4470dc2e6 to your computer and use it in GitHub Desktop.
var Obj = function() {
this.func = function() {
return something.f().then(this._a, this._b);
}
this._a = function() {
//something...(終わったらhoge実行)
}
this._b = function() {
//something...(終ったらfuga実行)
}
}
var o = new Obj();
o.func.then(hoge, fuga);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment