Replace typedefs with externs

Since the compiler leaves externs untouched and learns the used
properties from object literals, this replaces the otherwise
required typedefs just fine.
This commit is contained in:
Andreas Hocevar
2014-04-10 14:40:51 +02:00
parent 7e604d6ed3
commit b80c6d5c61

View File

@@ -297,8 +297,7 @@ def examples_star_json(name, match):
'id': match.group('id'),
'inherits': '../../buildcfg/base.json',
'inputs': [
'../examples/%(id)s.js' % match.groupdict(),
'../externs/olx.js', # compiled with src for @typedef's
'../examples/%(id)s.js' % match.groupdict()
],
'externs': [
'//jquery-1.7.js',
@@ -308,6 +307,7 @@ def examples_star_json(name, match):
'../externs/example.js',
'../externs/geojson.js',
'../externs/oli.js',
'../externs/olx.js',
'../externs/proj4js.js',
'../externs/tilejson.js',
'../externs/topojson.js',