Closed maxschmeling closed 8 years ago
Thanks, this looks good. I made a couple of comments on the pull request, I'm happy to include this in the next release if you make those changes.
I made the changes except for the "if (methodName in poirot)" check. I've got some more things I might add... when will you do the next release just so I know when I should get them in by?
There are a couple of things I want to do also, and for once I actually have some time off client work for open source so I'm aiming for a new release in about a week. I'll drop you a note before I do though in case there is something else you were working on that is worth putting in the next release.
About the methodName in poirot
check, perhaps your right, we can leave it out for now since it is a bit of an optimisation.
I added a grabTemplates method to the poirot javascript object which allows you to manually grab new templates. It doesn't clear existing templates though.
This is because I am using turbolinks and the poirot object only knew about the templates on the first page I loaded.