Skip to content

Commit

Permalink
Merge pull request #91 from dcfemtech/alongthepike-ie10fixes
Browse files Browse the repository at this point in the history
Fixed two issues that were preventing the page from working in IE10.
  • Loading branch information
alulsh authored Aug 19, 2016
2 parents 884ecff + 5a80dfb commit fced985
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions site.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,20 @@ app = {
activateMenu: function() {

$('.region, .buffer').on('click', function(e) {
event.stopPropagation();
e.stopPropagation();
app.toggleFilterState(e.currentTarget);
app.toggleFilterData(e.currentTarget);
});
$('#clearAll').on('click', function(e) {
event.stopPropagation();
e.stopPropagation();
app.clearSelectAll(e.currentTarget);
});
$('.region, .buffer, .start, .end, #clearAll-r').on('mouseenter', function(e) {
event.stopPropagation();
e.stopPropagation();
updateHoverText(e.currentTarget, 'enter');
});
$('.region, .buffer, .start, .end, #clearAll-r').on('mouseleave', function(e) {
event.stopPropagation();
e.stopPropagation();
updateHoverText(e.currentTarget, 'leave');
});

Expand Down Expand Up @@ -345,21 +345,21 @@ app = {
app.state[selRegion].selBuffers[buffer] ?
getBufferData(selRegion, buffer) :
clearBufferData(selRegion, buffer);
}

// ======= getBufferData =======
function getBufferData(region, buffer) {
var url = 'buffers/' + regions[region].bufferFiles[buffer];
app.bufferAjaxQueue(url, region, buffer);
}
// ======= getBufferData =======
function getBufferData(region, buffer) {
var url = 'buffers/' + regions[region].bufferFiles[buffer];
app.bufferAjaxQueue(url, region, buffer);
}

// ======= clearBufferData =======
function clearBufferData(region, buffer) {
var bufferFeature = app.state[region].bufferLayers[buffer];
if (bufferFeature) {
app.activeMap.removeLayer(bufferFeature);
}
app.state[region].bufferLayers[buffer] = null;
// ======= clearBufferData =======
function clearBufferData(region, buffer) {
var bufferFeature = app.state[region].bufferLayers[buffer];
if (bufferFeature) {
app.activeMap.removeLayer(bufferFeature);
}
app.state[region].bufferLayers[buffer] = null;
}

// ======= removeBufferLayers =======
Expand Down

0 comments on commit fced985

Please sign in to comment.