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

Change check for EXTEND_PROTOTYPES and EXTEND_PROTOTYPE.string to an and #143

Closed
wants to merge 1 commit into from

Conversation

kiwiupover
Copy link

Closes #142

@rondale-sc
Copy link

@kiwiupover What is the rationale for swapping the logic here? I'm lacking much context methinks.

@rondale-sc
Copy link

Future travelers: I found this for added context:

screen shot 2018-04-12 at 9 51 55 am

@@ -4,7 +4,7 @@ import {
singularize
} from '../system/string';

if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) {
if (Ember.EXTEND_PROTOTYPES === true && Ember.EXTEND_PROTOTYPES.String) {
Copy link
Member

Choose a reason for hiding this comment

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

i don't think this is correct, as Ember.EXTEND_PROTOTYPES = { String: true } will now fail as it will fail the precondition of Ember.EXTEND_PROTOTYPES === true

noslouch pushed a commit to nypublicradio/nypr-publisher-lib that referenced this pull request Apr 12, 2018
noslouch pushed a commit to nypublicradio/nypr-publisher-lib that referenced this pull request Apr 12, 2018
@kiwiupover
Copy link
Author

closed by emberjs/ember.js#16514

@kiwiupover kiwiupover closed this Apr 13, 2018
@kiwiupover kiwiupover deleted the extended-prototypes branch April 13, 2018 20:27
@kiwiupover kiwiupover restored the extended-prototypes branch April 16, 2018 04:59
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