Closed dok closed 10 years ago
@Dokko1230 Yep I'll take a look!
@Dokko1230 Seems to work as expected for me. Are you running the clean-viz
branch and did you pull down any changes?
@aroc Oh! Issues seem to be on my side. Simply forgot to turn on grunt watch..
Closing. Sorry about that :O
Seems that the reason for this was that the trigger method for this.visual
in _build_visual was taken out. And the merge did not successfully cover that scenario for me.. Weird.
https://github.com/keenlabs/keen-js/blob/clean-viz/src/visualize.js#L67
vs.
https://github.com/keenlabs/keen-js/blob/master/src/visualize.js#L81
@Dokko1230 I may have missed something when manually cherry-picking changes form master and merging them into the clean-viz
branch. We can totally add that event triggering back in.
Gotcha. I added it in the clean-viz branch to test it out. Once I add it, it errors with the same stacktrace for me.
Stacktrace:
@Dokko1230 How are you using the lib? When does the lack of that trigger call cause problems? I'm just trying to conceptualize a potential fix.
I'm simply running code in index.html
It seems the issue seems to exist when this example is run. This error exists because the trigger method does not exist at this runtime for this.visual
. Perhaps it is being overridden? Or maybe it is just not being extended to DataViz?
@Dokko1230 I don't think I'm understanding. You're just running the test/examples/visualize/index.html
file? I can't replicate the error.
Yep. I am just running that file.
Reproduction steps:
if (this.visual) {
this.visual.trigger("remove");
}
test/examples/visualize/index.html
file@Dokko1230 Oh ok, I didn't realize you added the line in order to get the error. To clarify, do you require the this.visual.trigger("remove");
code in the _build_visual
function?
Yes that is correct.
if (this.visual) {
this.visual.trigger("remove");
}
Ok cool. I'll find some time today to look into how to bring that back.
@Dokko1230 Ok, I think this should be working now on the clean-viz
branch. Let me know if you have any other issues.
Looks fixed. Thanks!
Hey @aroc,
I ran the manual test in test/examples/visualize/index.html and the refactor seems to be causing some issues on selecting the chartType if the user does not specify it. My assumption is that none of those existing tests should be failing except for the intentional one. Could you take a look and let me know what you think? Thanks!
I've attached a screenshot with the stacktrace