Skip to content

Put Afterquery logic into a single object.#4

Open
AlanDeSmet wants to merge 11 commits into
apenwarr:masterfrom
AlanDeSmet:objectify
Open

Put Afterquery logic into a single object.#4
AlanDeSmet wants to merge 11 commits into
apenwarr:masterfrom
AlanDeSmet:objectify

Conversation

@AlanDeSmet
Copy link
Copy Markdown

I wanted to be able to put multiple visualizations on a single page without iframes, as well as eventually doing a few other perhaps overly clever things like caching parsed data. To this end, I overhauled Afterquery to put all of its logic into a single object. I'm hoping it's drop-in compatible; the new object is AfterqueryObj, and the afterquery.render interface is implemented in terms of it.

This may not work for you given your own design and goals for Afterquery, but I wanted to offer it up in case it was useful.

AlanDeSmet and others added 11 commits November 17, 2015 19:24
Allows running off of file:/// URLs, and should work in all other cases.
They might be useful outside of Afterquery. Also makes clearer who might side-effect.
To make it more distinct from upstream.
localStorage was disabled because it broken file:/// usage.  Added a quick and dirty check to not use it for URLs lacking a //.

Also removed some obsolete debugging messages.
agg_funcs now get a reference to the AfterqueryObj.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant