Remove use of several vars on global scope (#3363)
* remove use of is_mobile and is_mobile_device globals * fix undeclared bbox variablemaster
parent
b6e1bd858e
commit
5ff250cab1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue