The typeahead object is associated with the species <input> element and
will presumably be GC'd when you click on another tree and the <input> is
removed from the DOM.


On Mon, Sep 9, 2013 at 3:48 PM, Justin Walgran <notifications@github.com>wrote:

> In opentreemap/treemap/js/src/editTreeDetailsMode.js:
>
> > +    otmTypeahead = require('./otmTypeahead'),
> > +    plotMover = require('./plotMover');
> > +
> > +var mapManager,
> > +    inlineEditForm,
> > +    typeaheads,
> > +    plotMarker;
> > +
> > +function init(options) {
> > +    mapManager = options.mapManager;
> > +    inlineEditForm = options.inlineEditForm;
> > +    typeaheads = options.typeaheads;
> > +    plotMarker = options.plotMarker;
> > +}
> > +
> > +function activate() {
>
> The typeaheads are not destroyed in deactivate. Is is a problem to call
> create every time activate is called?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/azavea/OTM2/pull/292/files#r6248706>
> .
>



-- 
Rick Mohr, Software Developer

Azavea |  340 N 12th St, Ste 402, Philadelphia, PA
rmohr@azavea.com  | T 215.701.7504  | F 215.925.2663
Web azavea.com <http://www.azavea.com/>  |  Blog
azavea.com/blogs<http://www.azavea.com/Blogs>
| Twitter @azavea <http://twitter.com/azavea>