Comparing version 6.1.1 to 6.1.2
@@ -99,13 +99,11 @@ 'use strict'; | ||
function createRouteInfoWithAttributes(routeInfo, context) { | ||
var objects = [{ | ||
var attributes = { | ||
get attributes() { | ||
return context; | ||
} | ||
}]; | ||
}; | ||
if (Object.isFrozen(routeInfo)) { | ||
objects.unshift({}, routeInfo); | ||
} else { | ||
objects.unshift(routeInfo); | ||
return Object.assign({}, routeInfo, attributes); | ||
} | ||
return Object.assign.apply(null, objects); | ||
return Object.assign(routeInfo, attributes); | ||
} | ||
@@ -112,0 +110,0 @@ |
@@ -68,16 +68,11 @@ import { Promise } from 'rsvp'; | ||
function createRouteInfoWithAttributes(routeInfo, context) { | ||
let objects = [ | ||
{ | ||
get attributes() { | ||
return context; | ||
}, | ||
let attributes = { | ||
get attributes() { | ||
return context; | ||
}, | ||
]; | ||
}; | ||
if (Object.isFrozen(routeInfo)) { | ||
objects.unshift({}, routeInfo); | ||
return Object.assign({}, routeInfo, attributes); | ||
} | ||
else { | ||
objects.unshift(routeInfo); | ||
} | ||
return Object.assign.apply(null, objects); | ||
return Object.assign(routeInfo, attributes); | ||
} | ||
@@ -84,0 +79,0 @@ export default class InternalRouteInfo { |
{ | ||
"name": "router_js", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": | ||
@@ -5,0 +5,0 @@ "A lightweight JavaScript library is built on top of route-recognizer and rsvp.js to provide an API for handling routes", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
372428
5375