Commit 258e1720 authored by Pascal Hartig's avatar Pascal Hartig

Ember: Soft-upgrade 1.6 dependencies

parent 12b68729
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Portions Copyright 2008-2011 Apple Inc. All rights reserved. * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license * @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE * See https://raw.github.com/emberjs/ember.js/master/LICENSE
* @version 1.6.0 * @version 1.6.1
*/ */
...@@ -2518,7 +2518,7 @@ define("ember-metal/core", ...@@ -2518,7 +2518,7 @@ define("ember-metal/core",
@class Ember @class Ember
@static @static
@version 1.6.0 @version 1.6.1
*/ */
if ('undefined' === typeof Ember) { if ('undefined' === typeof Ember) {
...@@ -2545,10 +2545,10 @@ define("ember-metal/core", ...@@ -2545,10 +2545,10 @@ define("ember-metal/core",
/** /**
@property VERSION @property VERSION
@type String @type String
@default '1.6.0' @default '1.6.1'
@static @static
*/ */
Ember.VERSION = '1.6.0'; Ember.VERSION = '1.6.1';
/** /**
Standard environmental variables. You can define these in a global `EmberENV` Standard environmental variables. You can define these in a global `EmberENV`
...@@ -39379,7 +39379,7 @@ define("ember-routing/system/router", ...@@ -39379,7 +39379,7 @@ define("ember-routing/system/router",
} else if (error.name === 'TransitionAborted') { } else if (error.name === 'TransitionAborted') {
// just ignore TransitionAborted here // just ignore TransitionAborted here
} else { } else {
throw error; logError(error);
} }
return error; return error;
...@@ -39522,16 +39522,7 @@ define("ember-routing/system/router", ...@@ -39522,16 +39522,7 @@ define("ember-routing/system/router",
return; return;
} }
var errorArgs = ['Error while processing route: ' + transition.targetName]; logError(error, 'Error while processing route: ' + transition.targetName);
if (error) {
if (error.message) { errorArgs.push(error.message); }
if (error.stack) { errorArgs.push(error.stack); }
if (typeof error === "string") { errorArgs.push(error); }
}
Ember.Logger.error.apply(this, errorArgs);
}, },
loading: function(transition, originRoute) { loading: function(transition, originRoute) {
...@@ -39562,6 +39553,21 @@ define("ember-routing/system/router", ...@@ -39562,6 +39553,21 @@ define("ember-routing/system/router",
} }
}; };
function logError(error, initialMessage) {
var errorArgs = [];
if (initialMessage) { errorArgs.push(initialMessage); }
if (error) {
if (error.message) { errorArgs.push(error.message); }
if (error.stack) { errorArgs.push(error.stack); }
if (typeof error === "string") { errorArgs.push(error); }
}
Ember.Logger.error.apply(this, errorArgs);
}
function findChildRouteName(parentRoute, originatingChildRoute, name) { function findChildRouteName(parentRoute, originatingChildRoute, name) {
var router = parentRoute.router, var router = parentRoute.router,
childName, childName,
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment