Skip to content

Instantly share code, notes, and snippets.

View matjaz's full-sized avatar
:octocat:

Matjaž Lipuš matjaz

:octocat:
View GitHub Profile
@matjaz
matjaz / runReturn
Created December 30, 2009 14:59 — forked from remy/runReturn
// because I just needed the function to run once, then assign it -
// I knew that I'd never need to run it manually again, so here I
// extended the Function prototype :)
Function.prototype.runReturn = function (scope) {
this.call(scope);
return this;
};
// for example: