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

remove Map/MapWithDefault polyfills, use Ember's ones #3215

Merged
merged 1 commit into from
Sep 17, 2015
Merged

remove Map/MapWithDefault polyfills, use Ember's ones #3215

merged 1 commit into from
Sep 17, 2015

Conversation

sly7-7
Copy link
Contributor

@sly7-7 sly7-7 commented Jun 5, 2015

Closes #2512

@fivetanley
Copy link
Member

Need to make sure with @stefanpenner these aren't likely to change.

@sly7-7
Copy link
Contributor Author

sly7-7 commented Jun 11, 2015

@fivetanley @stefanpenner any news on that ?

@stefanpenner
Copy link
Member

@fivetanley is ED relying on the public API's of Map/MapWithDefault?

I just realized, for some reason all its API's are marked as private... I believe this is a mistake

@stefanpenner
Copy link
Member

I suspect as long as,

  • size
  • set
  • get
  • forEach
  • delete
  • has
  • clear

are the only methods used, everything should be fine.

@sly7-7
Copy link
Contributor Author

sly7-7 commented Jun 11, 2015

@stefanpenner Thanks for the investigation 👍

As a side note, is it safe to use Ember.Map/MapWithDefault in client app ?

@stefanpenner
Copy link
Member

As a side note, is it safe to use Ember.Map/MapWithDefault in client app ?
Show all checks

I would say so, but I didn't release they are marked as private. Someone should investigate :P

@sly7-7
Copy link
Contributor Author

sly7-7 commented Jun 11, 2015

@stefanpenner It seems like Map has been marked private since the beggining, at least since the first move to yuidoc, see: emberjs/ember.js@1325935#diff-7d75f034e93c4304edfd8944392ef2e0R60

Also, here @rwjblue took that in account to mark all the method as private, but it seems like there is no pb to make them public if wanted/needed

@sly7-7
Copy link
Contributor Author

sly7-7 commented Jun 15, 2015

@fivetanley ping ?

@wecc
Copy link
Contributor

wecc commented Sep 16, 2015

@sly7-7 I think this would be great to get merged, would you be able to sort out the conflicts?

@sly7-7
Copy link
Contributor Author

sly7-7 commented Sep 17, 2015

@wecc My pleasure, Should be ok now 😄

bmac added a commit that referenced this pull request Sep 17, 2015
remove Map/MapWithDefault polyfills, use Ember's ones
@bmac bmac merged commit 0f06c86 into emberjs:master Sep 17, 2015
@bmac
Copy link
Member

bmac commented Sep 17, 2015

Thanks @sly7-7.

@sly7-7 sly7-7 deleted the fix-for-2512 branch September 18, 2015 08:03
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.

None yet

5 participants