Skip to content

Commit f60739b

Browse files
authored
Merge pull request #60 from cadwmaster/master
Configure bubble up resource loaded event
2 parents 15e211b + cd0e649 commit f60739b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app-localize-behavior.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@
161161
localize: {
162162
type: Function,
163163
computed: '__computeLocalize(language, resources, formats)'
164+
},
165+
166+
/**
167+
* If true, will bubble up the event to the parents
168+
*/
169+
bubbleEvent: {
170+
type: Boolean,
171+
value: false
164172
}
165173
},
166174

@@ -238,7 +246,7 @@
238246

239247
__onRequestResponse: function(event) {
240248
this.resources = event.response;
241-
this.fire('app-localize-resources-loaded');
249+
this.fire('app-localize-resources-loaded', event, { bubbles: this.bubbleEvent});
242250
},
243251

244252
__onRequestError: function(event) {

0 commit comments

Comments
 (0)