Merge pull request #1951 from tschaub/gjslint

Externs lint.
This commit is contained in:
Tim Schaub
2014-04-04 10:11:34 -06:00
6 changed files with 36 additions and 13 deletions

View File

@@ -6,16 +6,15 @@
*/ */
/** /**
* @param {string|Object.<string,*>=} option * @param {string|Object.<string,*>=} opt_option
* @return {!jQuery} * @return {!jQuery}
*/ */
jQuery.prototype.popover = function(option) {}; jQuery.prototype.popover = function(opt_option) {};
/** /**
* @param {string|Object.<string,*>=} option * @param {string|Object.<string,*>=} opt_option
* @return {!jQuery} * @return {!jQuery}
*/ */
jQuery.prototype.tooltip = function(option) {}; jQuery.prototype.tooltip = function(opt_option) {};

View File

@@ -10,30 +10,37 @@
// @see https://code.google.com/p/closure-compiler/issues/detail?id=1060 // @see https://code.google.com/p/closure-compiler/issues/detail?id=1060
/** @type {Date} */ /** @type {Date} */
HTMLInputElement.prototype.valueAsDate; HTMLInputElement.prototype.valueAsDate;
/** @type {number} */ /** @type {number} */
HTMLInputElement.prototype.valueAsNumber; HTMLInputElement.prototype.valueAsNumber;
// @see https://code.google.com/p/closure-compiler/issues/detail?id=1084 // @see https://code.google.com/p/closure-compiler/issues/detail?id=1084
/** @type {?number} */ /** @type {?number} */
DeviceRotationRate.prototype.alpha; DeviceRotationRate.prototype.alpha;
/** @type {?number} */ /** @type {?number} */
DeviceRotationRate.prototype.beta; DeviceRotationRate.prototype.beta;
/** @type {?number} */ /** @type {?number} */
DeviceRotationRate.prototype.gamma; DeviceRotationRate.prototype.gamma;
// @see https://code.google.com/p/closure-compiler/issues/detail?id=1088 // @see https://code.google.com/p/closure-compiler/issues/detail?id=1088
/** @type {?number} */ /** @type {?number} */
DeviceOrientationEvent.prototype.webkitCompassAccuracy; DeviceOrientationEvent.prototype.webkitCompassAccuracy;
/** @type {?number} */ /** @type {?number} */
DeviceOrientationEvent.prototype.webkitCompassHeading; DeviceOrientationEvent.prototype.webkitCompassHeading;
@@ -41,15 +48,19 @@ DeviceOrientationEvent.prototype.webkitCompassHeading;
// IE 11 fullscreen API // IE 11 fullscreen API
// http://msdn.microsoft.com/en-us/library/ie/dn265028(v=vs.85).aspx // http://msdn.microsoft.com/en-us/library/ie/dn265028(v=vs.85).aspx
/** @return {void} */ /** @return {void} */
Element.prototype.msRequestFullscreen = function() {}; Element.prototype.msRequestFullscreen = function() {};
/** @return {void} */ /** @return {void} */
Element.prototype.msExitFullscreen = function() {}; Element.prototype.msExitFullscreen = function() {};
/** @type {boolean} */ /** @type {boolean} */
Document.prototype.msFullscreenEnabled; Document.prototype.msFullscreenEnabled;
/** @type {Element} */ /** @type {Element} */
Document.prototype.msFullscreenElement; Document.prototype.msFullscreenElement;
@@ -57,17 +68,22 @@ Document.prototype.msFullscreenElement;
/** @type {number} */ /** @type {number} */
Touch.prototype.force; Touch.prototype.force;
/** @type {number} */ /** @type {number} */
Touch.prototype.radiusX; Touch.prototype.radiusX;
/** @type {number} */ /** @type {number} */
Touch.prototype.radiusY; Touch.prototype.radiusY;
/** @type {number} */ /** @type {number} */
Touch.prototype.webkitForce; Touch.prototype.webkitForce;
/** @type {number} */ /** @type {number} */
Touch.prototype.webkitRadiusX; Touch.prototype.webkitRadiusX;
/** @type {number} */ /** @type {number} */
Touch.prototype.webkitRadiusY; Touch.prototype.webkitRadiusY;

View File

@@ -36,6 +36,7 @@ oli.DrawEvent;
oli.DrawEvent.prototype.feature; oli.DrawEvent.prototype.feature;
/** @interface */ /** @interface */
oli.FrameState; oli.FrameState;
@@ -120,6 +121,7 @@ oli.FrameState.prototype.viewHints;
oli.FrameState.prototype.wantedTiles; oli.FrameState.prototype.wantedTiles;
/** @interface */ /** @interface */
oli.ObjectEvent; oli.ObjectEvent;

View File

@@ -89,4 +89,4 @@ Proj4js.Proj.prototype.to_meter;
* @param {Proj4js.Point|{x:number, y:number}} point * @param {Proj4js.Point|{x:number, y:number}} point
* @return {Proj4js.Point} * @return {Proj4js.Point}
*/ */
Proj4js.transform = function(source, dest, point) {}; Proj4js.transform = function(source, dest, point) {return null;};

View File

@@ -4,6 +4,7 @@
*/ */
/** /**
* FIXME check argument type * FIXME check argument type
* @constructor * @constructor
@@ -15,7 +16,7 @@ var VBArray = function(safeArray) {};
/** /**
* @return {number} * @return {number}
*/ */
VBArray.prototype.dimensions = function() {}; VBArray.prototype.dimensions = function() {return 0;};
/** /**
@@ -35,7 +36,7 @@ VBArray.prototype.lbound = function(opt_dimension) {};
/** /**
* @return {Array.<number>} * @return {Array.<number>}
*/ */
VBArray.prototype.toArray = function() {}; VBArray.prototype.toArray = function() {return null;};
/** /**

View File

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