Only add object type definition when there is no constructor
This commit is contained in:
@@ -45,7 +45,8 @@ function generateExterns(symbols) {
|
|||||||
parts.forEach(function(part) {
|
parts.forEach(function(part) {
|
||||||
namespace.push(part);
|
namespace.push(part);
|
||||||
var partialNamespace = namespace.join('.');
|
var partialNamespace = namespace.join('.');
|
||||||
if (!(partialNamespace in namespaces)) {
|
if (!(partialNamespace in namespaces ||
|
||||||
|
partialNamespace in constructors)) {
|
||||||
namespaces[partialNamespace] = true;
|
namespaces[partialNamespace] = true;
|
||||||
lines.push('/**');
|
lines.push('/**');
|
||||||
lines.push(' * @type {Object}');
|
lines.push(' * @type {Object}');
|
||||||
|
|||||||
Reference in New Issue
Block a user