전체 페이지뷰

2016년 5월 4일 수요일

Datejs and d3.js conflict with transition

http://stackoverflow.com/questions/18008240/datejs-and-d3-js-conflict-with-transition


more details here


Ok a co-worker and myself have figured out the issue. date.js is our small little hell. It has overwritten native date which causes this code to fail.
    function d3_timer_mark() {
        var now = Date.now(), timer = d3_timer_queueHead;
        while (timer) {
            if (now >= timer.time)
                timer.flush = timer.callback(now - timer.time);
            timer = timer.next;
        }
        return now;
    }
This causes now and timer.time to be invalid and it is a comparison of strings instead of what d3 depends on is an Long in milliseconds.

whatever?

댓글 없음:

댓글 쓰기