Helpers Refactors

Clone of and resolves #2107 
IDK, but you know what?! I'll submit a test case covering it just to kill a
dream

On Tue, Dec 9, 2014 at 8:16 PM, James Kyle <notifications@github.com> wrote:

> In src/helpers.js
> <https://github.com/marionettejs/backbone.marionette/pull/2119#discussion-diff-21577973>
> :
>
> >      var normalizedKey = Marionette.normalizeUIString(key, ui);
> > -    if (normalizedKey !== key) {
> > -      hash[normalizedKey] = hash[key];
> > -      delete hash[key];
> > -    }
> > -  });
> > -
> > -  return hash;
> > +    memo[normalizedKey] = val;
> > +    return memo;
> > +  }, {});
>
> WHY WOULD THEY DO SUCH A HORRIBLE THING?!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/marionettejs/backbone.marionette/pull/2119/files#r21577973>
> .
>