Fix annoying warning
This commit is contained in:
parent
ad1b26e0dc
commit
c4a9e9e42d
@ -68,13 +68,13 @@ WebGLUtils = function() {
|
||||
var makeFailHTML = function(msg) {
|
||||
return '' +
|
||||
'<div style="margin: auto; width:500px;z-index:10000;margin-top:20em;text-align:center;">' + msg + '</div>';
|
||||
return '' +
|
||||
'<table style="background-color: #8CE; width: 100%; height: 100%;"><tr>' +
|
||||
'<td align="center">' +
|
||||
'<div style="display: table-cell; vertical-align: middle;">' +
|
||||
'<div style="">' + msg + '</div>' +
|
||||
'</div>' +
|
||||
'</td></tr></table>';
|
||||
// return '' +
|
||||
// '<table style="background-color: #8CE; width: 100%; height: 100%;"><tr>' +
|
||||
// '<td align="center">' +
|
||||
// '<div style="display: table-cell; vertical-align: middle;">' +
|
||||
// '<div style="">' + msg + '</div>' +
|
||||
// '</div>' +
|
||||
// '</td></tr></table>';
|
||||
};
|
||||
|
||||
/**
|
||||
@ -182,10 +182,10 @@ if (!window.requestAnimationFrame) {
|
||||
})();
|
||||
}
|
||||
|
||||
/** * ERRATA: 'cancelRequestAnimationFrame' renamed to 'cancelAnimationFrame' to reflect an update to the W3C Animation-Timing Spec.
|
||||
*
|
||||
* Cancels an animation frame request.
|
||||
* Checks for cross-browser support, falls back to clearTimeout.
|
||||
/** * ERRATA: 'cancelRequestAnimationFrame' renamed to 'cancelAnimationFrame' to reflect an update to the W3C Animation-Timing Spec.
|
||||
*
|
||||
* Cancels an animation frame request.
|
||||
* Checks for cross-browser support, falls back to clearTimeout.
|
||||
* @param {number} Animation frame request. */
|
||||
if (!window.cancelAnimationFrame) {
|
||||
window.cancelAnimationFrame = (window.cancelRequestAnimationFrame ||
|
||||
|
Loading…
Reference in New Issue
Block a user