enums icon indicating copy to clipboard operation
enums copied to clipboard

The 'Enum' name defined / assigned to in enums.js polutes the global namespace

Open octavian-nita opened this issue 9 years ago • 0 comments

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) {

octavian-nita avatar Jun 18 '15 09:06 octavian-nita