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

View File

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

View File

@@ -89,4 +89,4 @@ Proj4js.Proj.prototype.to_meter;
* @param {Proj4js.Point|{x:number, y:number}} 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
* @constructor
@@ -15,7 +16,7 @@ var VBArray = function(safeArray) {};
/**
* @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>}
*/
VBArray.prototype.toArray = function() {};
VBArray.prototype.toArray = function() {return null;};
/**

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;};