From c11b2b5f1ca8396b2eb95c9e4d20f3c7adda55dd Mon Sep 17 00:00:00 2001 From: Jason Weaver Date: Wed, 16 Oct 2013 14:21:17 -0500 Subject: [PATCH] Remove jQuery dependency. Default to bootstrap components written in pure AngularJS. --- app/views/includes/foot.jade | 5 ----- bower.json | 3 +-- public/js/init.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index 0ed95b26..c18dc188 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -1,8 +1,3 @@ -script(type='text/javascript', src='/lib/jquery/jquery.js') - -//Bootstrap -script(type='text/javascript', src='/lib/bootstrap-assets/js/bootstrap.js') - //AngularJS script(type='text/javascript', src='/lib/angular/angular.js') script(type='text/javascript', src='/lib/angular-cookies/angular-cookies.js') diff --git a/bower.json b/bower.json index e00fcd87..5f3586b4 100644 --- a/bower.json +++ b/bower.json @@ -8,7 +8,6 @@ "angular-cookies": "~1.0.6", "angular-bootstrap": "~0.4.0", "angular-ui-utils": "0.0.4", - "json3": "~3.2.4", - "jquery": "~1.9.1" + "json3": "~3.2.4" } } diff --git a/public/js/init.js b/public/js/init.js index fa2955c8..f77b4f2a 100644 --- a/public/js/init.js +++ b/public/js/init.js @@ -6,7 +6,7 @@ window.init = function() { window.bootstrap(); }; -$(document).ready(function() { +angular.element(document).ready(function() { //Fixing facebook bug with redirect if (window.location.hash == "#_=_") window.location.hash = "";