From bf1506714759d1292a0092884ca3c94972c0e84a Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 26 May 2015 17:45:24 -0700 Subject: [PATCH 1/3] Make IE 'fakeLoad' event async, to prevent reentrancy. --- src/HTMLImports/parser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HTMLImports/parser.js b/src/HTMLImports/parser.js index 41d81fc27..b646fc2d3 100644 --- a/src/HTMLImports/parser.js +++ b/src/HTMLImports/parser.js @@ -209,7 +209,9 @@ var importParser = { } // dispatch a fake load event and continue parsing if (fakeLoad) { - elt.dispatchEvent(new CustomEvent('load', {bubbles: false})); + setTimeout(function() { + elt.dispatchEvent(new CustomEvent('load', {bubbles: false})); + }); } } }, From c228afa3458ae519a5655193f115d835ba4c76de Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 26 May 2015 17:46:27 -0700 Subject: [PATCH 2/3] Add comment --- src/HTMLImports/parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HTMLImports/parser.js b/src/HTMLImports/parser.js index b646fc2d3..8f7914bfb 100644 --- a/src/HTMLImports/parser.js +++ b/src/HTMLImports/parser.js @@ -209,6 +209,7 @@ var importParser = { } // dispatch a fake load event and continue parsing if (fakeLoad) { + // Fire async, to prevent reentrancy setTimeout(function() { elt.dispatchEvent(new CustomEvent('load', {bubbles: false})); }); From 131ea2174ec5c4d4a48e6637cc0751dc5dee43a3 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 26 May 2015 17:47:45 -0700 Subject: [PATCH 3/3] prepare for 0.7.2 release --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 148f5fed2..9f6e69b54 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "webcomponentsjs", "main": "webcomponents.js", - "version": "0.7.1", + "version": "0.7.2", "homepage": "http://webcomponents.org", "authors": [ "The Polymer Authors" diff --git a/package.json b/package.json index 276f1da7a..087b9b809 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webcomponents.js", - "version": "0.7.1", + "version": "0.7.2", "description": "webcomponents.js", "main": "webcomponents.js", "directories": {