Commit bf61f0fc by Calen Pennington

Merge pull request #4 from cpennington/remove-doc-ready

Remove the doc-ready function, as XBlock runtimes should be waiting until after the document is loaded to call XBlock initializers
parents ce4c0961 dd7ee806
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
<i class="${unknown_class}"></i> <i class="${unknown_class}"></i>
</span> </span>
</p> </p>
<p>Document-ready function run:
<span class="document-ready-run">
<i class="${unknown_class}"></i>
</span>
</p>
<p>Acid Child counts match: <p>Acid Child counts match:
<span class="child-counts-match"> <span class="child-counts-match">
<i class="${unknown_class}"></i> <i class="${unknown_class}"></i>
......
...@@ -94,13 +94,9 @@ function AcidBlock(runtime, element) { ...@@ -94,13 +94,9 @@ function AcidBlock(runtime, element) {
mark('success', '.js-init-run'); mark('success', '.js-init-run');
$(function ($) { childTests();
mark('success', '.document-ready-run'); resourceTests();
scopeTests();
childTests(); return {parentValue: acidData('parent-value')};
resourceTests();
scopeTests();
});
return {parentValue: acidData('parent-value')}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment