-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helpers Refactors #2119
Helpers Refactors #2119
Conversation
return hash; | ||
memo[normalizedKey] = val; | ||
return memo; | ||
}, {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_NEED... ...TRANSFORM..._ jashkenas/underscore#1901
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thejameskyle what if they give us an array for the ui?!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHY WOULD THEY DO SUCH A HORRIBLE THING?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDK, but you know what?! I'll submit a test case covering it just to kill your
dream
On Tue, Dec 9, 2014 at 8:16 PM, James Kyle [email protected] wrote:
In src/helpers.js
#2119 (diff)
: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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WE'LL PASS AN ACCUMULATOR!!! AND THEN WHAT ARE YOU GONNA DO GRAEME?!?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DRATS, he got me
:) |
6️⃣ 6️⃣ 6️⃣ |
Clone of and resolves #2107