Add a temporary html5 externs file
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.
This commit is contained in:
1
build.py
1
build.py
@@ -316,6 +316,7 @@ def examples_star_json(name, match):
|
||||
'../externs/oli.js',
|
||||
'../externs/proj4js.js',
|
||||
'../externs/tilejson.js',
|
||||
'../externs/html5.js',
|
||||
],
|
||||
})
|
||||
with open(t.name, 'w') as f:
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
"../externs/topojson.js",
|
||||
"../externs/oli.js",
|
||||
"../externs/proj4js.js",
|
||||
"../externs/tilejson.js"
|
||||
"../externs/tilejson.js",
|
||||
"../externs/html5.js"
|
||||
],
|
||||
|
||||
"level": "VERBOSE",
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"../externs/topojson.js",
|
||||
"../externs/oli.js",
|
||||
"../externs/proj4js.js",
|
||||
"../externs/tilejson.js"
|
||||
"../externs/tilejson.js",
|
||||
"../externs/html5.js"
|
||||
],
|
||||
|
||||
"inherits": "base.json",
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
"../externs/topojson.js",
|
||||
"../externs/oli.js",
|
||||
"../externs/proj4js.js",
|
||||
"../externs/tilejson.js"
|
||||
"../externs/tilejson.js",
|
||||
"../externs/html5.js"
|
||||
],
|
||||
|
||||
"inherits": "ol.json",
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
"../externs/topojson.js",
|
||||
"../externs/oli.js",
|
||||
"../externs/proj4js.js",
|
||||
"../externs/tilejson.js"
|
||||
"../externs/tilejson.js",
|
||||
"../externs/html5.js"
|
||||
],
|
||||
|
||||
"inherits": "ol.json",
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
"../externs/topojson.js",
|
||||
"../externs/oli.js",
|
||||
"../externs/proj4js.js",
|
||||
"../externs/tilejson.js"
|
||||
"../externs/tilejson.js",
|
||||
"../externs/html5.js"
|
||||
],
|
||||
|
||||
"inherits": "base.json",
|
||||
|
||||
17
externs/html5.js
Normal file
17
externs/html5.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @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;
|
||||
Reference in New Issue
Block a user