Remove use of several vars on global scope (#3363)

* remove use of is_mobile and is_mobile_device globals

* fix undeclared bbox variable
master
Andrey Pissantchev 2017-04-05 23:40:24 +01:00 committed by Zaahir Moolla
parent b6e1bd858e
commit 5ff250cab1
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ DDH.cheat_sheets.build = function(ops) {
if (i === 0 ){
showhide = false;
} else if ( i === 1 && !is_mobile ){
} else if ( i === 1 && !DDG.device.isMobile ){
showhide = false;
}

View File

@ -3,7 +3,7 @@ DDH.frequency_spectrum = DDH.frequency_spectrum || {};
(function(DDH) {
"use strict";
// Get the marker label and tag
var markerlabel, markertag, started;
var markerlabel, markertag, started, bbox;
function start() {
markerlabel = document.getElementById("marker_label");

View File

@ -317,7 +317,7 @@ DDH.game2048.build = function(ops) {
return {
onShow: function() {
//Hide this goodie on mobile devices for now
if(is_mobile || is_mobile_device) {
if(DDG.device.isMobile || DDG.device.isMobileDevice) {
DDH.spice_tabs.game2048.hideLink();
DDH.spice_tabs.game2048.hide();
return;