Relicensed under LGPL for qooxdoo.
This function is public. It can be used by both user and programmer.
Function.prototype.closure(obj);