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

Do not compute FastBootService.request in the browser #201

Merged
merged 1 commit into from
May 31, 2016

Conversation

arjansingh
Copy link
Contributor

@danmcclain Whenever FastBootService.request was accessed in the browser, it was not handling _fastbootInfo.request being undefined. This fix ensures that we return null in that case just like Ember.computed.readOnly would.

@arjansingh arjansingh changed the title Do not try to compute FastBootService.request in the browser Do not compute FastBootService.request in the browser May 26, 2016
@@ -1,7 +1,7 @@
/* global FastBoot */
import Ember from "ember";

const { deprecate, computed, get } = Ember;
const { deprecate, computed, get, set } = Ember;
Copy link
Member

Choose a reason for hiding this comment

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

Where is set being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nowhere after my last refactor. good catch!

@arjansingh
Copy link
Contributor Author

Updated to remove set

@arjansingh
Copy link
Contributor Author

@danmcclain any other blockers to merging?

import { moduleFor, test } from 'ember-qunit';

moduleFor('service:fastboot', 'Unit | Service | fastboot in the browser', {
// Specify the other units that are required for this test.
Copy link
Member

Choose a reason for hiding this comment

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

Don't need these comment lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😁

@danmcclain danmcclain merged commit 377748d into ember-fastboot:master May 31, 2016
xg-wang pushed a commit to xg-wang/ember-cli-fastboot that referenced this pull request Nov 16, 2020
…-sync

Remove usage of deprecated exists-sync
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.

2 participants