From 4331bd151446a1d95043bd61d557e08fbdd78ff5 Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Tue, 2 Jun 2015 08:02:03 -0700 Subject: [PATCH] disable tooltips on cards to improve performance --- scripts/FlashcardDirective.js | 8 ++++---- scripts/SettingsController.js | 4 ++-- templates/flashcard.html | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/FlashcardDirective.js b/scripts/FlashcardDirective.js index 8ea1a1f..895a4e2 100644 --- a/scripts/FlashcardDirective.js +++ b/scripts/FlashcardDirective.js @@ -9,10 +9,10 @@ angular.module('flashy.FlashcardDirective', []). flashcard: '=flashcardObj', // flashcard-obj in parent html refresh: '&' // eval refresh in parent html }, - link: function(scope, element) { - $('.tooltipped').tooltip(); - /* Handles width of the card */ - } + //link: function(scope, element) { + // $('.tooltipped').tooltip(); + // /* Handles width of the card */ + //} }; } ); diff --git a/scripts/SettingsController.js b/scripts/SettingsController.js index b0b6e97..63c5708 100644 --- a/scripts/SettingsController.js +++ b/scripts/SettingsController.js @@ -27,7 +27,7 @@ angular.module('flashy.SettingsController', ['ui.router']). callback(true); } - console.log("gonna try to launch service worker now"); + console.log('gonna try to launch service worker now'); navigator.serviceWorker.register('scripts/service-worker.js').then( function(serviceWorkerRegistration) { serviceWorkerRegistration.pushManager.subscribe().then( @@ -46,4 +46,4 @@ angular.module('flashy.SettingsController', ['ui.router']). } ); }); - }); + }); diff --git a/templates/flashcard.html b/templates/flashcard.html index 5e5d3f5..0b74f40 100644 --- a/templates/flashcard.html +++ b/templates/flashcard.html @@ -1,5 +1,5 @@ -
+
-- 1.9.1