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