Subversion Repositories HomeAutomation

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1.  
  2. function DataStore()
  3. {
  4. }
  5.  
  6. DataStore.myStores = new Array();
  7.  
  8. DataStore.getStore = function(name)
  9. {
  10.     if (!DataStore.myStores[name])
  11.     {
  12.         loadDataStore(name);
  13.     }
  14.    
  15.     return DataStore.myStores[name];
  16. }
  17.  
  18. DataStore.addStore = function(name, data)
  19. {
  20.     DataStore.myStores[name] = data;
  21. }
  22.