Skip to content

Commit 28cbede

Browse files
committed
v1.5.2
2 parents 6ff1b07 + 5c0d389 commit 28cbede

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// Registration was successful
4040
caches.keys().then(function(keyList) {
4141
for(var i = 0; i < keyList.length; i++) {
42-
if(keyList[i] != 'GGCMaps-cache-v1.5.1') {
42+
if(keyList[i] != 'GGCMaps-cache-v1.5.2') {
4343
caches.delete(keyList[i]);
4444
}
4545
}

js/script.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

learn-more.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<img class="Logo" src="images/launcher-icon-3x.png" alt="GGCMaps Logo">
6868
<h1>GGCMaps</h1>
6969
<p style="text-align: center; font-size: 1.5em; font-weight: 500;"><b>Browser Compatibility Issues</b></p>
70-
<p style="text-align: center;">GGCMaps v.1.5.1<br>Released on: 8/23/2018</p>
70+
<p style="text-align: center;">GGCMaps v.1.5.2<br>Released on: 8/28/2018</p>
7171
<h3>Microsoft Edge</h3>
7272
<div class="list-container">
7373
<ul>

lib/client-js/debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var debug = {
2-
active: true,
2+
active: false,
33
group: function(name) {
44
if (this.active) {
55
console.group(name);

lib/client-js/maps.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,19 @@ function addMap(mapLocation, building, floor) {
247247
toggleTab(ev, 'helpbox');
248248
toggleTab(ev, 'campusEvents');
249249
if (building === 'Campus') {
250-
var target = ev.target.parentNode.id.toUpperCase();
251-
for (var campusB in campus.buildings) {
252-
if (target === campusB.id.toUpperCase()) {
253-
changeFloor(campusB.id, campusB.floors[i].id);
250+
var target = ev.target.parentNode.id;
251+
if (target !== undefined && target !== null) {
252+
for (var campusB in campus.buildings) {
253+
if (target.toUpperCase() === campus.buildings[campusB].id.toUpperCase()) {
254+
changeFloor(campus.buildings[campusB].id, campus.buildings[campusB].floors[0].id);
255+
break;
256+
}
254257
}
255258
}
256259
} else {
257260
var room = ev.target.parentNode.id;
258261
if (room.length === 4 || room.length === 5) {
259-
debug_msg("addMap calls activateRoom");
262+
debug.msg("addMap calls activateRoom");
260263
activateRoom(ev.target.parentNode.id);
261264
}
262265
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ggcmaps",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"private": true,
55
"contributors": [
66
{

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//when updates to the cached files are made, increment CACHE_NAME version
22
//then place old CACHE_NAME value in line 41 of index.html so that old caches
33
//are deleted from users browsers
4-
var CACHE_NAME = 'GGCMaps-cache-v1.5.1';
4+
var CACHE_NAME = 'GGCMaps-cache-v1.5.2';
55
// baseURL is used to switch between hosting structures.
66
// Set to null ('') for regular hosting
77
// Set to directory inside Github Pages

0 commit comments

Comments
 (0)