Templates with embedded widgets no longer work correctly in a built layer. For a template like below, where <my-embedded-widget> has a property called foo:
<template requires=acme/MyEmbeddedWidget>
<my-embedded-widget foo=bar>
...
... the generated code is calling setAttribute():
define("delite/handlebars!acme/MyCompoundWidget.html", [ "acme/MyEmbeddedWidget" ], function() {
return function anonymous(document, register) {
var c1 = register.createElement("my-embedded-widget");
c1.setAttribute("foo", "bar");
But, it should be setting the property directly:
(Note that this wouldn't be a critical issue if we had attribute reflection as mentioned in #33. But we don't. And even if we did, it would still be somewhat of a performance issue.)
This is a regression from #432.