Skip to content

chore: remove leftover expression - #3693

Closed
crisbeto wants to merge 1 commit into
masterfrom
crisbeto-patch-1
Closed

chore: remove leftover expression#3693
crisbeto wants to merge 1 commit into
masterfrom
crisbeto-patch-1

Conversation

@crisbeto

Copy link
Copy Markdown
Member

This is a follow-up to #2849. It looks like I was a little too quick to switch the statement and forgot to remove the typeof.

This is a follow-up to #2849. It looks like I was a little too quick to switch the statement and forgot to remove the `typeof`.
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 21, 2017

constructor(@Optional() @Inject(DOCUMENT) document: any) {
if (isDevMode() && typeof document && !document.doctype) {
if (isDevMode() && document && !document.doctype) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Won't just document by itself potentially be an issue for Universal? typeof document == 'object'?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

It won't, because it'll hit the parameter, before it tries to look for it globally.

@crisbeto

Copy link
Copy Markdown
MemberAuthor

I've rolled these changes into #3693. Closing to avoid potential merge conflicts.

@crisbeto
crisbeto deleted the crisbeto-patch-1 branch May 12, 2017 18:52
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 6, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yesPR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@crisbeto@jelbourn@googlebot