Externs lint

This commit is contained in:
Tim Schaub
2014-04-04 07:03:58 -06:00
parent 6a3d349409
commit fe60d07ef0
6 changed files with 36 additions and 13 deletions

View File

@@ -25,7 +25,8 @@ var WebGLDebugLostContextSimulatingCanvas = function() {};
* @nosideeffects
* @return {number}
*/
WebGLDebugLostContextSimulatingCanvas.prototype.getNumCalls = function() {};
WebGLDebugLostContextSimulatingCanvas.prototype.getNumCalls =
function() {return NaN;};
/**
@@ -63,7 +64,7 @@ var WebGLDebugUtils = {};
* @param {number} value
* @return {string}
*/
WebGLDebugUtils.glEnumToString = function(value) {};
WebGLDebugUtils.glEnumToString = function(value) {return '';};
/**
@@ -72,7 +73,9 @@ WebGLDebugUtils.glEnumToString = function(value) {};
* @param {Array} args Args.
* @return {string} String.
*/
WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) {};
WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) {
return '';
};
/**
@@ -85,7 +88,9 @@ WebGLDebugUtils.init = function(ctx) {};
* @param {HTMLCanvasElement} canvas
* @return {WebGLDebugLostContextSimulatingCanvas}
*/
WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) {};
WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) {
return null;
};
/**
@@ -95,4 +100,4 @@ WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) {};
* @return {WebGLDebugRenderingContext}
*/
WebGLDebugUtils.makeDebugContext =
function(context, opt_onErrorFunc, opt_onFunc) {};
function(context, opt_onErrorFunc, opt_onFunc) {return null;};