aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngRoute/routeUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngRoute/routeUtils.js')
-rw-r--r--src/ngRoute/routeUtils.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ngRoute/routeUtils.js b/src/ngRoute/routeUtils.js
new file mode 100644
index 00000000..0cff7213
--- /dev/null
+++ b/src/ngRoute/routeUtils.js
@@ -0,0 +1,17 @@
+'use strict';
+
+var copy = angular.copy,
+ equals = angular.equals,
+ extend = angular.extend,
+ forEach = angular.forEach,
+ isDefined = angular.isDefined,
+ isFunction = angular.isFunction,
+ isString = angular.isString,
+ jqLite = angular.element,
+ noop = angular.noop,
+ toJson = angular.toJson;
+
+
+function inherit(parent, extra) {
+ return extend(new (extend(function() {}, {prototype:parent}))(), extra);
+}