File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,10 @@ function upgradeTemplate(template, constructor) {
101
101
* @implements {Polymer_PropertyEffects}
102
102
* @private
103
103
*/
104
- const templateInstanceBase = PropertyEffects ( class { } ) ;
104
+ const templateInstanceBase = PropertyEffects (
105
+ // This cast shouldn't be neccessary, but Closure doesn't understand that
106
+ // "class {}" is a constructor function.
107
+ /** @type {function(new:Object) } */ ( class { } ) ) ;
105
108
106
109
/**
107
110
* @polymer
@@ -317,7 +320,10 @@ TemplateInstanceBase.prototype.__hostProps;
317
320
* @implements {Polymer_MutableData}
318
321
* @private
319
322
*/
320
- const MutableTemplateInstanceBase = MutableData ( TemplateInstanceBase ) ;
323
+ const MutableTemplateInstanceBase = MutableData (
324
+ // This cast shouldn't be necessary, but Closure doesn't seem to understand
325
+ // this constructor.
326
+ /** @type {function(new:TemplateInstanceBase) } */ ( TemplateInstanceBase ) ) ;
321
327
322
328
function findMethodHost ( template ) {
323
329
// Technically this should be the owner of the outermost template.
You can’t perform that action at this time.
0 commit comments