Note that there are some explanatory texts on larger screens.

plurals
  1. PODart Element.append() enters infinite loop
    primarykey
    data
    text
    <p>I have a whole bunch of Dart code that worked fine previously, so there are no bugs in my code. now however, with the latest Dart SDK (0.7.3.1_r27487) the following line makes my code enter an infinite loop:</p> <p>document.body.append(SomeElement);</p> <p>when I comment out this line no loop is entered, however the component I created does not display (is not attached to the DOM). </p> <p>anyone have any ideas? I see on the web that people are mentioning other library functions entering infinite loops in particular circumstances. no mention of append() however. </p> <p>Any guidance would be greatly appreciated. thanks</p> <p>ps: bellow is the code in main() thats surrounding the crashing line. the definitions of various arguments passed into init() are omitted. the document.body.append() line is whats causing the infinite loop</p> <pre><code>void main() { Function log_fun = (p_g,p_m) =&gt; print('$p_g:$p_m'); log_fun('FUN_ENTER','test.main()'); List&lt;Map&gt; posts_infos_by_pages_lst = test_data.get_test_data(log_fun); visGroup_paged_scroll.init(draw_element_fun, get_elements_pages_info_fun, //called whenever visGroup_scroll loads new pages //p_onNewPagesLoad_fun () {}, //p_onComplete_fun (DivElement p_visGroup_scroll_element, visGroup_paged.PagesCache p_pages_cache, int p_total_pages_num, int p_visGroup_scroll_height_int, Function p_visGroup_pages_display_fun) { document.body.append(p_visGroup_scroll_element); }, log_fun, p_scroll_container_height_px : 600, p_scroll_container_width_px : 1000, p_scroll_bar_width_px : 80); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload