diff --git a/tasks/generate-externs.js b/tasks/generate-externs.js index 73066052b0..5cf77e5126 100644 --- a/tasks/generate-externs.js +++ b/tasks/generate-externs.js @@ -45,7 +45,8 @@ function generateExterns(symbols) { parts.forEach(function(part) { namespace.push(part); var partialNamespace = namespace.join('.'); - if (!(partialNamespace in namespaces)) { + if (!(partialNamespace in namespaces || + partialNamespace in constructors)) { namespaces[partialNamespace] = true; lines.push('/**'); lines.push(' * @type {Object}');