Skip to content

Commit

Permalink
fixed uuid return
Browse files Browse the repository at this point in the history
  • Loading branch information
briangonzalez committed Jan 24, 2017
1 parent b008559 commit 8cf1202
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions addon/locations/router-scroll.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Ember from 'ember';

const uuid = () => {
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
const r = Math.random() * 16 | 0;
const v = c === 'x' ? r : r & 3 | 8;
return v.toString(16);
});
};
const uuid = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
const r = Math.random() * 16 | 0;
const v = c === 'x' ? r : r & 3 | 8;
return v.toString(16);
});

const {
get,
Expand Down

0 comments on commit 8cf1202

Please sign in to comment.