-
Notifications
You must be signed in to change notification settings - Fork 56
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
Align with Ember's HistoryLocation router #40
Align with Ember's HistoryLocation router #40
Conversation
@bcardarella These look like real failures now. |
@bcardarella Ok, there was an actual bug in 1.13 which I had to modify a test to fix. |
const key = get(this, 'key') || '-1'; | ||
set(this, 'key', stateUuid); | ||
let key = getWithDefault(this, 'key', '-1'); | ||
console.log(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be removed
@@ -3,7 +3,7 @@ import { moduleFor, test } from 'ember-qunit'; | |||
|
|||
const { | |||
get, | |||
set | |||
set, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you intend to leave the trailing comma?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, our lint rules enforce it.
0b4a460
to
b5aa167
Compare
@@ -1,25 +1,27 @@ | |||
import Ember from 'ember'; | |||
|
|||
const uuid = () => { | |||
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this implementation of the uuid function doesn't work. It needs to return
the result of this replace
function. Otherwise it will always be undefined
and the scrollMap
will not be populated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linting snafoo, i'll fix.
8cf1202
to
605d9ea
Compare
Link repository
Now that emberjs/ember.js#14011 has landed
it would be best to align this library with the new implementation in
anticipation of deprecating the RouterScroll for Ember 2.13 and
eventually removing it in Ember 3.0.