Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 647913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:46:31+00:00 2026-05-13T21:46:31+00:00

I am extensively using declarative dojo DataStores in my application and connecting them to

  • 0

I am extensively using declarative dojo DataStores in my application and connecting them to various declarative data driven Widgets. The problem comes in when I attempt to “destroy” the ContentPane that contains the DataStores. All the declarative examples using datastores use the attribute jsId to have the dojo parser set the datastore as a variable, which then the control is pointed at. For example I use the following:

<div dojoType="dojo.data.ItemFileReadStore" id="processList" jsId="processList" 
  url="json/processlist.json.php"></div>
<input dojoType="dijit.form.FilteringSelect" name="processSelect" id="processSelect" 
  value="null" store="processList" searchAttr="label" />

It works like a charm, but the problem is that when I destroy the parent ContentPane I notice that the variable processList is still available in the browser. After using various parts of the application, I end up lots and lots of little data stores all over the place, which obviously is a rather large “memory leak”.

How do I either avoid registering the datastore as a variable (I tried dijit.byId() in the store attribute without success) or how do I automatically have these datastores clean themselves up?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:46:31+00:00Added an answer on May 13, 2026 at 9:46 pm

    As per the discussion with the open ticket, version 1.4.x of dojo will not automatically delete global variables which are created by the parser via setting the jsId attribute. The only way currently to delete them is to manually keep track of them and issue a delete variable_name. Some sort of long term solution for a future release of dojo is being considered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application I am using extensively glTexImage2D. I copy some image of an
I'm working on a graphics application that is using virtual classes fairly extensively. It
Ok this may seem stupid and I have googled extensively using various different keywords
I am using 3D maths in my application extensively. How much speed-up can I
I'm using the Data Annotation validation extensively in ASP.NET MVC 2. This new feature
I'm extensively using hash map data structures in my program. I'm using a hash
I am developing a website which is extensively using jquery dom javascript ajax etc.
In my project, I am extensively using boost asio to be able to uniformly
I'm working on a website using extensively javascript. The code I'm working on also
I'm using the following code-snippet extensively in my model templates. <div class=control-group> @Html.LabelFor(model =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.