From 41b95f0bc4477438b99632bbebc2c8f7adeaa55a Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Thu, 4 Sep 2014 10:26:14 -0400
Subject: [PATCH] Bootstrap 2 JS checkstyles part 2.

---
 themes/bootstrap/js/embedGBS.js | 2 ++
 themes/bootstrap/js/preview.js  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/themes/bootstrap/js/embedGBS.js b/themes/bootstrap/js/embedGBS.js
index a6dfa1abfcd..ae81464ebee 100644
--- a/themes/bootstrap/js/embedGBS.js
+++ b/themes/bootstrap/js/embedGBS.js
@@ -1,3 +1,5 @@
+/*global getBibKeyString, google */
+
 // we don't need to wait for dom ready since lang is in the dom root
 var lang = document.documentElement.getAttribute('lang');
 google.load("books", "0", {"language":lang});
diff --git a/themes/bootstrap/js/preview.js b/themes/bootstrap/js/preview.js
index 6b7d9994f70..becd51e100b 100644
--- a/themes/bootstrap/js/preview.js
+++ b/themes/bootstrap/js/preview.js
@@ -5,7 +5,7 @@ function getHathiOptions() {
 function getGoogleOptions() {
     var opts_temp = $('[class*="googlePreviewSpan"]').attr("class").split('__')[1].split(';');
     var options = {};
-    for (key in opts_temp) {
+    for(var key in opts_temp) {
         var arr = opts_temp[key].split(':');
         options[arr[0]] = arr[1].split(',');
     }
-- 
GitLab