enums
enums copied to clipboard
The 'Enum' name defined / assigned to in enums.js polutes the global namespace
Hi guys,
Currently, the 'Enum' name gets defined in the enums module as follows:
Enum = function (obj) {
Since var
is not used in the definition, this 'polutes' the JavaScript global namespace with the Enum name. I assume this wasn't the original intent, rather something like:
var Enum = function (obj) {
Or... even simpler:
function Enum(obj) {