What does MooTools' Function.prototype.overloadSetter() do?
问题 I'm looking through the MooTools source to try and understand its .implement() and .extend() utilities. The definition of each refers to a function defined like this: var enumerables = true; for (var i in {toString: 1}) enumerables = null; if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'constructor']; Function.prototype.overloadSetter = function(usePlural){ var self = this; return function(a, b){ if (a ==