Skip to content

Commit

Permalink
Clean app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Roboe committed Aug 8, 2015
1 parent fa68035 commit 54d60a6
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
(function() {

angular.module('filmViz', [
'ngRoute',
]);

// configure our routes
angular.module('filmViz').config(function($routeProvider) {
angular.module('filmViz', ['ngRoute'])
.config(function($routeProvider) {
$routeProvider
.when('/', {
// route for the home page
//templateUrl: 'pages/main.html',
templateUrl: 'pages/editor.html',
controller: 'ProjectController',
});
});

/*
* Extending Array.prototype using Object.defineProperty allows
* you to keep looping arrays with 'for in', because 'contains()'
* is not 'enumerable'.
*/
Object.defineProperty(Array.prototype, 'contains', {
value: function(item) {
return this.indexOf(item) !== -1;
},
});
}());
/*
* Extending Array.prototype using Object.defineProperty allows
* you to keep looping arrays with 'for in', because 'contains()'
* is not 'enumerable'.
*/
Object.defineProperty(Array.prototype, 'contains', {
value: function(item) {
return this.indexOf(item) !== -1;
},
});

0 comments on commit 54d60a6

Please sign in to comment.