73bcce88
luigser
COMPONENTS
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
global.flushAsynchronousOperations = function() {
// force distribution
Polymer.dom.flush();
// force lifecycle callback to fire on polyfill
window.CustomElements && window.CustomElements.takeRecords();
};
global.forceXIfStamp = function(node) {
var templates = Polymer.dom(node.root).querySelectorAll('template[is=dom-if]');
for (var tmpl, i = 0; tmpl = templates[i]; i++) {
tmpl.render();
}
global.flushAsynchronousOperations();
};
global.fireEvent = function(type, props, node) {
var event = new CustomEvent(type, {
bubbles: true,
cancelable: true
});
|