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

feature/ATC-175 #226

Merged
merged 3 commits into from
Dec 19, 2016
Merged

feature/ATC-175 #226

merged 3 commits into from
Dec 19, 2016

Conversation

erikquinn
Copy link
Collaborator

@erikquinn erikquinn commented Dec 19, 2016

Resolves #175.

I... think I fixed it? Should probably play around with it to see if other errors come up, but the one described in the issue is resolved.

@erikquinn erikquinn added this to the v3.2.0 milestone Dec 19, 2016
@erikquinn erikquinn self-assigned this Dec 19, 2016
@n8rzz n8rzz temporarily deployed to atc-dev-pr-226 December 19, 2016 02:51 Inactive
@n8rzz n8rzz temporarily deployed to atc-dev-pr-226 December 19, 2016 04:26 Inactive
@@ -467,11 +467,23 @@ export default class StandardRouteModel extends BaseModel {

if (this._entryCollection) {
const entrySegment = this._entryCollection.findSegmentByName(entry);

if (entrySegment === undefined) {
Copy link
Owner

Choose a reason for hiding this comment

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

The StandardRoute files are heavily tested so I would like to see some tests for this new stuff. In the interest of time, I'll whip some up here.

@@ -467,11 +467,23 @@ export default class StandardRouteModel extends BaseModel {

if (this._entryCollection) {
const entrySegment = this._entryCollection.findSegmentByName(entry);

if (entrySegment === undefined) {
Copy link
Owner

Choose a reason for hiding this comment

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

this should be typeof entrySegment === 'undefined'. javascript is a little particular about comparisons with undefined and using typeof with strict equals (===) is the best way to check for undefined. I"ll make that change while I'm writing tests.

@n8rzz n8rzz merged commit 2de04cf into develop Dec 19, 2016
@n8rzz n8rzz deleted the feature/ATC-175 branch December 19, 2016 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants