use strict

This commit is contained in:
Max Lynch
2013-10-15 14:59:26 -05:00
parent 1f2f539ae1
commit 1828379217
17 changed files with 43 additions and 18 deletions

View File

@ -2,6 +2,7 @@
* Adapted from Backbone.js
*/
(function(ionic) {
'use strict';
var optionalParam = /\((.*?)\)/g;
var namedParam = /(\(\?)?:\w+/g;
var splatParam = /\*\w+/g;
@ -16,7 +17,7 @@
// Cached regex for removing a trailing slash.
var trailingSlash = /\/$/;
RouteViewController = function(options) {
ionic.controllers.RouteViewController = function(options) {
this.options = options;
this.root = this.options.root || '/';
@ -30,7 +31,7 @@
this.history = window.history;
};
RouteViewController.prototype = {
ionic.controllers.RouteViewController.prototype = {
when: function(route, callback) {
var _this = this;