Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Fix issue on Chromium based browsers. #173

Merged
merged 1 commit into from
Oct 23, 2016
Merged

Fix issue on Chromium based browsers. #173

merged 1 commit into from
Oct 23, 2016

Conversation

bnjmnt4n
Copy link
Member

See jsperf/jsperf.com#235 (comment).

Ref. jsperf/jsperf.com#235.

I'm not too sure whether the timeout of 1 is enough, and I don't really have time to check ¯_(ツ)_/¯

@mathiasbynens
Copy link
Member

LGTM

// ensure that content in iframe is processed by executing on next tick
setTimeout(function() {
// the element the charts are inserted into
me.container = query('#bs-chart', idoc)[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the me.container assignment need to be in the setTimeout?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it should be inside. Previously me.container was undefined as the iframe hadn't updated yet. Placing a timeout of 1 should get the code to run in the next tick, and the iframe should be updated by then.

@jdalton jdalton merged commit f341499 into master Oct 23, 2016
@jdalton jdalton deleted the demoneaux-patch-1 branch October 23, 2016 06:11
@jdalton jdalton added the bug label Oct 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants