Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created August 4, 2014 19:59
Show Gist options
  • Save mraleph/8defe4981651c9748d0c to your computer and use it in GitHub Desktop.
Save mraleph/8defe4981651c9748d0c to your computer and use it in GitHub Desktop.
function foo(x) {
function getCapacity(smth) {
}
this.x = function () {
getCapacity(yyy);
};
return this;
}
new foo();
@danielepolencic
Copy link

I have

function foo () {}
foo.prototype.x = function () {
  this._resize(getCapacity())
}

function getCapacity() {
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment