I just look at the once API of source in underscore.js, then wandering what is it the used for in the method, it seems doing nothing:
func = null
the source:
_.once = function(func) {
var ran = false, memo;
return function() {
if (ran) return memo;
ran = true;
memo = func.apply(this, arguments);
func = null;
return memo;
};
};
func = null
is done?