vendor/assets/javascripts/angular-route.js in angular-gem-1.2.9 vs vendor/assets/javascripts/angular-route.js in angular-gem-1.2.10
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license AngularJS v1.2.9
+ * @license AngularJS v1.2.10
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
@@ -188,11 +188,11 @@
},
keys = ret.keys = [];
path = path
.replace(/([().])/g, '\\$1')
- .replace(/(\/)?:(\w+)([\?|\*])?/g, function(_, slash, key, option){
+ .replace(/(\/)?:(\w+)([\?\*])?/g, function(_, slash, key, option){
var optional = option === '?' ? option : null;
var star = option === '*' ? option : null;
keys.push({ name: key, optional: !!optional });
slash = slash || '';
return ''
@@ -373,10 +373,10 @@
* @name ngRoute.$route#$routeChangeStart
* @eventOf ngRoute.$route
* @eventType broadcast on root scope
* @description
* Broadcasted before a route change. At this point the route services starts
- * resolving all of the dependencies needed for the route change to occurs.
+ * resolving all of the dependencies needed for the route change to occur.
* Typically this involves fetching the view template as well as any dependencies
* defined in `resolve` route property. Once all of the dependencies are resolved
* `$routeChangeSuccess` is fired.
*
* @param {Object} angularEvent Synthetic event object.