Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Improve urth-core-behaviors/error-display-behavior #555

Closed
Closed
10 changes: 8 additions & 2 deletions elements/urth-core-function/urth-core-function.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@
],

listeners: {
'watch_notify': 'invoke',
'click': '_tryInvoke'
'watch_notify': 'invoke'
},

created: function(){
Expand All @@ -157,6 +156,13 @@
this.args = this._paramsFromAttributes();
}
},

attached: function() {
var toListen = Polymer.dom(this.root).querySelectorAll('*');
for (var i = 0; i < toListen.length; i++) {
this.listen(toListen[i], 'click', '_tryInvoke');
}
},

/*
* onModelReady is invoked when have created the model portion of the widget
Expand Down