This is needed because the current version of closure compiler we use does not include externs for valueAsNumber which we now use in ol.dom.Input. So this backports patch from issue: https://code.google.com/p/closure-compiler/issues/detail?id=1060 This patch should be reverted when the next closure compiler release is out with valueAsNumber externs.
18 lines
594 B
JavaScript
18 lines
594 B
JavaScript
/**
|
|
* @fileoverview Definitions for extensions over the W3C's DOM3 specification
|
|
* in HTML5 which are not yet available with the current release version of
|
|
* the closure compiler we use.
|
|
* @see http://dev.w3.org/html5/spec/Overview.html
|
|
* @externs
|
|
*/
|
|
|
|
// See issue https://code.google.com/p/closure-compiler/issues/detail?id=1060
|
|
// FIXME: this should be remove when the next closure compiler release is out
|
|
// with valueAsDate and valueAsNumber externs.
|
|
|
|
/** @type {Date} */
|
|
HTMLInputElement.prototype.valueAsDate;
|
|
|
|
/** @type {number} */
|
|
HTMLInputElement.prototype.valueAsNumber;
|