Skip to content
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

Merged
merged 5 commits into from
Dec 10, 2014
Merged

Helpers Refactors #2119

merged 5 commits into from
Dec 10, 2014

Conversation

megawac
Copy link
Member

@megawac megawac commented Dec 10, 2014

Clone of and resolves #2107

@samccone samccone merged commit c9bfaf5 into marionettejs:v2.3.0 Dec 10, 2014
return hash;
memo[normalizedKey] = val;
return memo;
}, {});
Copy link
Member

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

Copy link
Member Author

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?!!

Copy link
Member

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?!

Copy link
Member Author

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
.

Copy link
Member

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?!?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRATS, he got me

@megawac megawac deleted the cursedbranch branch December 10, 2014 01:13
@jamiebuilds
Copy link
Member

screen shot 2014-12-09 at 5 12 49 pm

WE'RE CURSED!!

@samccone
Copy link
Member

:)

@samccone
Copy link
Member

6️⃣ 6️⃣ 6️⃣
🔥 🔥 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants