Add disableSelection to stop highlighting

This commit is contained in:
Blake Grotewold
2014-04-01 19:25:59 -05:00
parent 8ad2f82fd0
commit a0aa2eaab9
+7
View File
@@ -86,6 +86,8 @@ var Engine = {
window.location = 'mobileWarning.html'; window.location = 'mobileWarning.html';
} }
Engine.disableSelection();
if(this.options.state != null) { if(this.options.state != null) {
window.State = this.options.state; window.State = this.options.state;
} else { } else {
@@ -566,6 +568,11 @@ var Engine = {
} }
}, },
disableSelection: function() {
document.onselectstart = function() {return false;} // this is for IE
document.onmousedown = function() {return false;} // this is for the rest
},
handleStateUpdates: function(e){ handleStateUpdates: function(e){
} }