[Pkg-javascript-commits] [dojo] 09/18: Imported Upstream version 1.4.3+dfsg1

David Prévot taffit at alioth.debian.org
Fri Oct 25 19:59:05 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit 92009803fb57660fb810087d2482f5fc921a78cd
Author: David Prévot <taffit at debian.org>
Date:   Thu Oct 24 18:20:50 2013 -0400

    Imported Upstream version 1.4.3+dfsg1
---
 dojox/form/resources/uploader.swf                 |  Bin 16890 -> 0 bytes
 dojox/storage/AirDBStorageProvider.js             |  177 ---------
 dojox/storage/AirEncryptedLocalStorageProvider.js |  168 ---------
 dojox/storage/AirFileStorageProvider.js           |  174 ---------
 dojox/storage/FlashStorageProvider.js             |  211 -----------
 dojox/storage/GearsStorageProvider.js             |  230 ------------
 dojox/storage/Provider.js                         |   69 ----
 dojox/storage/README                              |   76 ----
 dojox/storage/Storage.as                          |  402 ---------------------
 dojox/storage/Storage.swf                         |  Bin 3325 -> 0 bytes
 dojox/storage/WhatWGStorageProvider.js            |  156 --------
 dojox/storage/_common.js                          |   17 -
 dojox/storage/buildFlashStorage.sh                |    4 -
 dojox/storage/manager.js                          |  117 ------
 dojox/storage/storage_dialog.fla                  |  Bin 344064 -> 0 bytes
 dojox/storage/storage_dialog.swf                  |  Bin 26980 -> 0 bytes
 16 files changed, 1801 deletions(-)

diff --git a/dojox/form/resources/uploader.swf b/dojox/form/resources/uploader.swf
deleted file mode 100644
index dd5bdd2..0000000
Binary files a/dojox/form/resources/uploader.swf and /dev/null differ
diff --git a/dojox/storage/AirDBStorageProvider.js b/dojox/storage/AirDBStorageProvider.js
deleted file mode 100644
index 439e632..0000000
--- a/dojox/storage/AirDBStorageProvider.js
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.AirDBStorageProvider"]){
-dojo._hasResource["dojox.storage.AirDBStorageProvider"]=true;
-dojo.provide("dojox.storage.AirDBStorageProvider");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.storage.Provider");
-if(dojo.isAIR){
-(function(){
-if(!_1){
-var _1={};
-}
-_1.File=window.runtime.flash.filesystem.File;
-_1.SQLConnection=window.runtime.flash.data.SQLConnection;
-_1.SQLStatement=window.runtime.flash.data.SQLStatement;
-dojo.declare("dojox.storage.AirDBStorageProvider",[dojox.storage.Provider],{DATABASE_FILE:"dojo.db",TABLE_NAME:"__DOJO_STORAGE",initialized:false,_db:null,initialize:function(){
-this.initialized=false;
-try{
-this._db=new _1.SQLConnection();
-this._db.open(_1.File.applicationStorageDirectory.resolvePath(this.DATABASE_FILE));
-this._sql("CREATE TABLE IF NOT EXISTS "+this.TABLE_NAME+"(namespace TEXT, key TEXT, value TEXT)");
-this._sql("CREATE UNIQUE INDEX IF NOT EXISTS namespace_key_index ON "+this.TABLE_NAME+" (namespace, key)");
-this.initialized=true;
-}
-catch(e){
-}
-dojox.storage.manager.loaded();
-},_sql:function(_2,_3){
-var _4=new _1.SQLStatement();
-_4.sqlConnection=this._db;
-_4.text=_2;
-if(_3){
-for(var _5 in _3){
-_4.parameters[_5]=_3[_5];
-}
-}
-_4.execute();
-return _4.getResult();
-},_beginTransaction:function(){
-this._db.begin();
-},_commitTransaction:function(){
-this._db.commit();
-},isAvailable:function(){
-return true;
-},put:function(_6,_7,_8,_9){
-if(this.isValidKey(_6)==false){
-throw new Error("Invalid key given: "+_6);
-}
-_9=_9||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_9)==false){
-throw new Error("Invalid namespace given: "+_9);
-}
-try{
-this._sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = :namespace AND key = :key",{":namespace":_9,":key":_6});
-this._sql("INSERT INTO "+this.TABLE_NAME+" VALUES (:namespace, :key, :value)",{":namespace":_9,":key":_6,":value":_7});
-}
-catch(e){
-_8(this.FAILED,_6,e.toString());
-return;
-}
-if(_8){
-_8(this.SUCCESS,_6,null,_9);
-}
-},get:function(_a,_b){
-if(this.isValidKey(_a)==false){
-throw new Error("Invalid key given: "+_a);
-}
-_b=_b||this.DEFAULT_NAMESPACE;
-var _c=this._sql("SELECT * FROM "+this.TABLE_NAME+" WHERE namespace = :namespace AND key = :key",{":namespace":_b,":key":_a});
-if(_c.data&&_c.data.length){
-return _c.data[0].value;
-}
-return null;
-},getNamespaces:function(){
-var _d=[this.DEFAULT_NAMESPACE];
-var rs=this._sql("SELECT namespace FROM "+this.TABLE_NAME+" DESC GROUP BY namespace");
-if(rs.data){
-for(var i=0;i<rs.data.length;i++){
-if(rs.data[i].namespace!=this.DEFAULT_NAMESPACE){
-_d.push(rs.data[i].namespace);
-}
-}
-}
-return _d;
-},getKeys:function(_e){
-_e=_e||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_e)==false){
-throw new Error("Invalid namespace given: "+_e);
-}
-var _f=[];
-var rs=this._sql("SELECT key FROM "+this.TABLE_NAME+" WHERE namespace = :namespace",{":namespace":_e});
-if(rs.data){
-for(var i=0;i<rs.data.length;i++){
-_f.push(rs.data[i].key);
-}
-}
-return _f;
-},clear:function(_10){
-if(this.isValidKey(_10)==false){
-throw new Error("Invalid namespace given: "+_10);
-}
-this._sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = :namespace",{":namespace":_10});
-},remove:function(key,_11){
-_11=_11||this.DEFAULT_NAMESPACE;
-this._sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = :namespace AND key = :key",{":namespace":_11,":key":key});
-},putMultiple:function(_12,_13,_14,_15){
-if(this.isValidKeyArray(_12)===false||!_13 instanceof Array||_12.length!=_13.length){
-throw new Error("Invalid arguments: keys = ["+_12+"], values = ["+_13+"]");
-}
-if(_15==null||typeof _15=="undefined"){
-_15=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_15)==false){
-throw new Error("Invalid namespace given: "+_15);
-}
-this._statusHandler=_14;
-try{
-this._beginTransaction();
-for(var i=0;i<_12.length;i++){
-this._sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = :namespace AND key = :key",{":namespace":_15,":key":_12[i]});
-this._sql("INSERT INTO "+this.TABLE_NAME+" VALUES (:namespace, :key, :value)",{":namespace":_15,":key":_12[i],":value":_13[i]});
-}
-this._commitTransaction();
-}
-catch(e){
-if(_14){
-_14(this.FAILED,_12,e.toString(),_15);
-}
-return;
-}
-if(_14){
-_14(this.SUCCESS,_12,null);
-}
-},getMultiple:function(_16,_17){
-if(this.isValidKeyArray(_16)===false){
-throw new Error("Invalid key array given: "+_16);
-}
-if(_17==null||typeof _17=="undefined"){
-_17=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_17)==false){
-throw new Error("Invalid namespace given: "+_17);
-}
-var _18=[];
-for(var i=0;i<_16.length;i++){
-var _19=this._sql("SELECT * FROM "+this.TABLE_NAME+" WHERE namespace = :namespace AND key = :key",{":namespace":_17,":key":_16[i]});
-_18[i]=_19.data&&_19.data.length?_19.data[0].value:null;
-}
-return _18;
-},removeMultiple:function(_1a,_1b){
-_1b=_1b||this.DEFAULT_NAMESPACE;
-this._beginTransaction();
-for(var i=0;i<_1a.length;i++){
-this._sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = namespace = :namespace AND key = :key",{":namespace":_1b,":key":_1a[i]});
-}
-this._commitTransaction();
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return this.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},hideSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-}});
-dojox.storage.manager.register("dojox.storage.AirDBStorageProvider",new dojox.storage.AirDBStorageProvider());
-dojox.storage.manager.initialize();
-})();
-}
-}
diff --git a/dojox/storage/AirEncryptedLocalStorageProvider.js b/dojox/storage/AirEncryptedLocalStorageProvider.js
deleted file mode 100644
index d0aafad..0000000
--- a/dojox/storage/AirEncryptedLocalStorageProvider.js
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.AirEncryptedLocalStorageProvider"]){
-dojo._hasResource["dojox.storage.AirEncryptedLocalStorageProvider"]=true;
-dojo.provide("dojox.storage.AirEncryptedLocalStorageProvider");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.storage.Provider");
-if(dojo.isAIR){
-(function(){
-if(!_1){
-var _1={};
-}
-_1.ByteArray=window.runtime.flash.utils.ByteArray;
-_1.EncryptedLocalStore=window.runtime.flash.data.EncryptedLocalStore,dojo.declare("dojox.storage.AirEncryptedLocalStorageProvider",[dojox.storage.Provider],{initialize:function(){
-dojox.storage.manager.loaded();
-},isAvailable:function(){
-return true;
-},_getItem:function(_2){
-var _3=_1.EncryptedLocalStore.getItem("__dojo_"+_2);
-return _3?_3.readUTFBytes(_3.length):"";
-},_setItem:function(_4,_5){
-var _6=new _1.ByteArray();
-_6.writeUTFBytes(_5);
-_1.EncryptedLocalStore.setItem("__dojo_"+_4,_6);
-},_removeItem:function(_7){
-_1.EncryptedLocalStore.removeItem("__dojo_"+_7);
-},put:function(_8,_9,_a,_b){
-if(this.isValidKey(_8)==false){
-throw new Error("Invalid key given: "+_8);
-}
-_b=_b||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_b)==false){
-throw new Error("Invalid namespace given: "+_b);
-}
-try{
-var _c=this._getItem("namespaces")||"|";
-if(_c.indexOf("|"+_b+"|")==-1){
-this._setItem("namespaces",_c+_b+"|");
-}
-var _d=this._getItem(_b+"_keys")||"|";
-if(_d.indexOf("|"+_8+"|")==-1){
-this._setItem(_b+"_keys",_d+_8+"|");
-}
-this._setItem("_"+_b+"_"+_8,_9);
-}
-catch(e){
-_a(this.FAILED,_8,e.toString(),_b);
-return;
-}
-if(_a){
-_a(this.SUCCESS,_8,null,_b);
-}
-},get:function(_e,_f){
-if(this.isValidKey(_e)==false){
-throw new Error("Invalid key given: "+_e);
-}
-_f=_f||this.DEFAULT_NAMESPACE;
-return this._getItem("_"+_f+"_"+_e);
-},getNamespaces:function(){
-var _10=[this.DEFAULT_NAMESPACE];
-var _11=(this._getItem("namespaces")||"|").split("|");
-for(var i=0;i<_11.length;i++){
-if(_11[i].length&&_11[i]!=this.DEFAULT_NAMESPACE){
-_10.push(_11[i]);
-}
-}
-return _10;
-},getKeys:function(_12){
-_12=_12||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_12)==false){
-throw new Error("Invalid namespace given: "+_12);
-}
-var _13=[];
-var _14=(this._getItem(_12+"_keys")||"|").split("|");
-for(var i=0;i<_14.length;i++){
-if(_14[i].length){
-_13.push(_14[i]);
-}
-}
-return _13;
-},clear:function(_15){
-if(this.isValidKey(_15)==false){
-throw new Error("Invalid namespace given: "+_15);
-}
-var _16=this._getItem("namespaces")||"|";
-if(_16.indexOf("|"+_15+"|")!=-1){
-this._setItem("namespaces",_16.replace("|"+_15+"|","|"));
-}
-var _17=(this._getItem(_15+"_keys")||"|").split("|");
-for(var i=0;i<_17.length;i++){
-if(_17[i].length){
-this._removeItem(_15+"_"+_17[i]);
-}
-}
-this._removeItem(_15+"_keys");
-},remove:function(key,_18){
-_18=_18||this.DEFAULT_NAMESPACE;
-var _19=this._getItem(_18+"_keys")||"|";
-if(_19.indexOf("|"+key+"|")!=-1){
-this._setItem(_18+"_keys",_19.replace("|"+key+"|","|"));
-}
-this._removeItem("_"+_18+"_"+key);
-},putMultiple:function(_1a,_1b,_1c,_1d){
-if(this.isValidKeyArray(_1a)===false||!_1b instanceof Array||_1a.length!=_1b.length){
-throw new Error("Invalid arguments: keys = ["+_1a+"], values = ["+_1b+"]");
-}
-if(_1d==null||typeof _1d=="undefined"){
-_1d=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_1d)==false){
-throw new Error("Invalid namespace given: "+_1d);
-}
-this._statusHandler=_1c;
-try{
-for(var i=0;i<_1a.length;i++){
-this.put(_1a[i],_1b[i],null,_1d);
-}
-}
-catch(e){
-if(_1c){
-_1c(this.FAILED,_1a,e.toString(),_1d);
-}
-return;
-}
-if(_1c){
-_1c(this.SUCCESS,_1a,null);
-}
-},getMultiple:function(_1e,_1f){
-if(this.isValidKeyArray(_1e)===false){
-throw new Error("Invalid key array given: "+_1e);
-}
-if(_1f==null||typeof _1f=="undefined"){
-_1f=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_1f)==false){
-throw new Error("Invalid namespace given: "+_1f);
-}
-var _20=[];
-for(var i=0;i<_1e.length;i++){
-_20[i]=this.get(_1e[i],_1f);
-}
-return _20;
-},removeMultiple:function(_21,_22){
-_22=_22||this.DEFAULT_NAMESPACE;
-for(var i=0;i<_21.length;i++){
-this.remove(_21[i],_22);
-}
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return this.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},hideSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-}});
-dojox.storage.manager.register("dojox.storage.AirEncryptedLocalStorageProvider",new dojox.storage.AirEncryptedLocalStorageProvider());
-dojox.storage.manager.initialize();
-})();
-}
-}
diff --git a/dojox/storage/AirFileStorageProvider.js b/dojox/storage/AirFileStorageProvider.js
deleted file mode 100644
index aa5c15f..0000000
--- a/dojox/storage/AirFileStorageProvider.js
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.AirFileStorageProvider"]){
-dojo._hasResource["dojox.storage.AirFileStorageProvider"]=true;
-dojo.provide("dojox.storage.AirFileStorageProvider");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.storage.Provider");
-if(dojo.isAIR){
-(function(){
-if(!_1){
-var _1={};
-}
-_1.File=window.runtime.flash.filesystem.File;
-_1.FileStream=window.runtime.flash.filesystem.FileStream;
-_1.FileMode=window.runtime.flash.filesystem.FileMode;
-dojo.declare("dojox.storage.AirFileStorageProvider",[dojox.storage.Provider],{initialized:false,_storagePath:"__DOJO_STORAGE/",initialize:function(){
-this.initialized=false;
-try{
-var _2=_1.File.applicationStorageDirectory.resolvePath(this._storagePath);
-if(!_2.exists){
-_2.createDirectory();
-}
-this.initialized=true;
-}
-catch(e){
-}
-dojox.storage.manager.loaded();
-},isAvailable:function(){
-return true;
-},put:function(_3,_4,_5,_6){
-if(this.isValidKey(_3)==false){
-throw new Error("Invalid key given: "+_3);
-}
-_6=_6||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_6)==false){
-throw new Error("Invalid namespace given: "+_6);
-}
-try{
-this.remove(_3,_6);
-var _7=_1.File.applicationStorageDirectory.resolvePath(this._storagePath+_6);
-if(!_7.exists){
-_7.createDirectory();
-}
-var _8=_7.resolvePath(_3);
-var _9=new _1.FileStream();
-_9.open(_8,_1.FileMode.WRITE);
-_9.writeObject(_4);
-_9.close();
-}
-catch(e){
-_5(this.FAILED,_3,e.toString(),_6);
-return;
-}
-if(_5){
-_5(this.SUCCESS,_3,null,_6);
-}
-},get:function(_a,_b){
-if(this.isValidKey(_a)==false){
-throw new Error("Invalid key given: "+_a);
-}
-_b=_b||this.DEFAULT_NAMESPACE;
-var _c=null;
-var _d=_1.File.applicationStorageDirectory.resolvePath(this._storagePath+_b+"/"+_a);
-if(_d.exists&&!_d.isDirectory){
-var _e=new _1.FileStream();
-_e.open(_d,_1.FileMode.READ);
-_c=_e.readObject();
-_e.close();
-}
-return _c;
-},getNamespaces:function(){
-var _f=[this.DEFAULT_NAMESPACE];
-var dir=_1.File.applicationStorageDirectory.resolvePath(this._storagePath);
-var _10=dir.getDirectoryListing(),i;
-for(i=0;i<_10.length;i++){
-if(_10[i].isDirectory&&_10[i].name!=this.DEFAULT_NAMESPACE){
-_f.push(_10[i].name);
-}
-}
-return _f;
-},getKeys:function(_11){
-_11=_11||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_11)==false){
-throw new Error("Invalid namespace given: "+_11);
-}
-var _12=[];
-var dir=_1.File.applicationStorageDirectory.resolvePath(this._storagePath+_11);
-if(dir.exists&&dir.isDirectory){
-var _13=dir.getDirectoryListing(),i;
-for(i=0;i<_13.length;i++){
-_12.push(_13[i].name);
-}
-}
-return _12;
-},clear:function(_14){
-if(this.isValidKey(_14)==false){
-throw new Error("Invalid namespace given: "+_14);
-}
-var dir=_1.File.applicationStorageDirectory.resolvePath(this._storagePath+_14);
-if(dir.exists&&dir.isDirectory){
-dir.deleteDirectory(true);
-}
-},remove:function(key,_15){
-_15=_15||this.DEFAULT_NAMESPACE;
-var _16=_1.File.applicationStorageDirectory.resolvePath(this._storagePath+_15+"/"+key);
-if(_16.exists&&!_16.isDirectory){
-_16.deleteFile();
-}
-},putMultiple:function(_17,_18,_19,_1a){
-if(this.isValidKeyArray(_17)===false||!_18 instanceof Array||_17.length!=_18.length){
-throw new Error("Invalid arguments: keys = ["+_17+"], values = ["+_18+"]");
-}
-if(_1a==null||typeof _1a=="undefined"){
-_1a=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_1a)==false){
-throw new Error("Invalid namespace given: "+_1a);
-}
-this._statusHandler=_19;
-try{
-for(var i=0;i<_17.length;i++){
-this.put(_17[i],_18[i],null,_1a);
-}
-}
-catch(e){
-if(_19){
-_19(this.FAILED,_17,e.toString(),_1a);
-}
-return;
-}
-if(_19){
-_19(this.SUCCESS,_17,null,_1a);
-}
-},getMultiple:function(_1b,_1c){
-if(this.isValidKeyArray(_1b)===false){
-throw new Error("Invalid key array given: "+_1b);
-}
-if(_1c==null||typeof _1c=="undefined"){
-_1c=this.DEFAULT_NAMESPACE;
-}
-if(this.isValidKey(_1c)==false){
-throw new Error("Invalid namespace given: "+_1c);
-}
-var _1d=[];
-for(var i=0;i<_1b.length;i++){
-_1d[i]=this.get(_1b[i],_1c);
-}
-return _1d;
-},removeMultiple:function(_1e,_1f){
-_1f=_1f||this.DEFAULT_NAMESPACE;
-for(var i=0;i<_1e.length;i++){
-this.remove(_1e[i],_1f);
-}
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return this.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},hideSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-}});
-dojox.storage.manager.register("dojox.storage.AirFileStorageProvider",new dojox.storage.AirFileStorageProvider());
-dojox.storage.manager.initialize();
-})();
-}
-}
diff --git a/dojox/storage/FlashStorageProvider.js b/dojox/storage/FlashStorageProvider.js
deleted file mode 100644
index 19ab15e..0000000
--- a/dojox/storage/FlashStorageProvider.js
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.FlashStorageProvider"]){
-dojo._hasResource["dojox.storage.FlashStorageProvider"]=true;
-dojo.provide("dojox.storage.FlashStorageProvider");
-dojo.require("dojox.flash");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.storage.Provider");
-dojo.declare("dojox.storage.FlashStorageProvider",dojox.storage.Provider,{initialized:false,_available:null,_statusHandler:null,_flashReady:false,_pageReady:false,initialize:function(){
-if(dojo.config["disableFlashStorage"]==true){
-return;
-}
-dojox.flash.addLoadedListener(dojo.hitch(this,function(){
-this._flashReady=true;
-if(this._flashReady&&this._pageReady){
-this._loaded();
-}
-}));
-var _1=dojo.moduleUrl("dojox","storage/Storage.swf").toString();
-dojox.flash.setSwf(_1,false);
-dojo.connect(dojo,"loaded",this,function(){
-this._pageReady=true;
-if(this._flashReady&&this._pageReady){
-this._loaded();
-}
-});
-},setFlushDelay:function(_2){
-if(_2===null||typeof _2==="undefined"||isNaN(_2)){
-throw new Error("Invalid argunment: "+_2);
-}
-dojox.flash.comm.setFlushDelay(String(_2));
-},getFlushDelay:function(){
-return Number(dojox.flash.comm.getFlushDelay());
-},flush:function(_3){
-if(_3==null||typeof _3=="undefined"){
-_3=dojox.storage.DEFAULT_NAMESPACE;
-}
-dojox.flash.comm.flush(_3);
-},isAvailable:function(){
-return (this._available=!dojo.config["disableFlashStorage"]);
-},put:function(_4,_5,_6,_7){
-if(!this.isValidKey(_4)){
-throw new Error("Invalid key given: "+_4);
-}
-if(!_7){
-_7=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_7)){
-throw new Error("Invalid namespace given: "+_7);
-}
-this._statusHandler=_6;
-if(dojo.isString(_5)){
-_5="string:"+_5;
-}else{
-_5=dojo.toJson(_5);
-}
-dojox.flash.comm.put(_4,_5,_7);
-},putMultiple:function(_8,_9,_a,_b){
-if(!this.isValidKeyArray(_8)||!_9 instanceof Array||_8.length!=_9.length){
-throw new Error("Invalid arguments: keys = ["+_8+"], values = ["+_9+"]");
-}
-if(!_b){
-_b=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_b)){
-throw new Error("Invalid namespace given: "+_b);
-}
-this._statusHandler=_a;
-var _c=_8.join(",");
-var _d=[];
-for(var i=0;i<_9.length;i++){
-if(dojo.isString(_9[i])){
-_9[i]="string:"+_9[i];
-}else{
-_9[i]=dojo.toJson(_9[i]);
-}
-_d[i]=_9[i].length;
-}
-var _e=_9.join("");
-var _f=_d.join(",");
-dojox.flash.comm.putMultiple(_c,_e,_f,_b);
-},get:function(key,_10){
-if(!this.isValidKey(key)){
-throw new Error("Invalid key given: "+key);
-}
-if(!_10){
-_10=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_10)){
-throw new Error("Invalid namespace given: "+_10);
-}
-var _11=dojox.flash.comm.get(key,_10);
-if(_11==""){
-return null;
-}
-return this._destringify(_11);
-},getMultiple:function(_12,_13){
-if(!this.isValidKeyArray(_12)){
-throw new ("Invalid key array given: "+_12);
-}
-if(!_13){
-_13=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_13)){
-throw new Error("Invalid namespace given: "+_13);
-}
-var _14=_12.join(",");
-var _15=dojox.flash.comm.getMultiple(_14,_13);
-var _16=eval("("+_15+")");
-for(var i=0;i<_16.length;i++){
-_16[i]=(_16[i]=="")?null:this._destringify(_16[i]);
-}
-return _16;
-},_destringify:function(_17){
-if(dojo.isString(_17)&&(/^string:/.test(_17))){
-_17=_17.substring("string:".length);
-}else{
-_17=dojo.fromJson(_17);
-}
-return _17;
-},getKeys:function(_18){
-if(!_18){
-_18=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_18)){
-throw new Error("Invalid namespace given: "+_18);
-}
-var _19=dojox.flash.comm.getKeys(_18);
-if(_19==null||_19=="null"){
-_19="";
-}
-_19=_19.split(",");
-_19.sort();
-return _19;
-},getNamespaces:function(){
-var _1a=dojox.flash.comm.getNamespaces();
-if(_1a==null||_1a=="null"){
-_1a=dojox.storage.DEFAULT_NAMESPACE;
-}
-_1a=_1a.split(",");
-_1a.sort();
-return _1a;
-},clear:function(_1b){
-if(!_1b){
-_1b=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_1b)){
-throw new Error("Invalid namespace given: "+_1b);
-}
-dojox.flash.comm.clear(_1b);
-},remove:function(key,_1c){
-if(!_1c){
-_1c=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_1c)){
-throw new Error("Invalid namespace given: "+_1c);
-}
-dojox.flash.comm.remove(key,_1c);
-},removeMultiple:function(_1d,_1e){
-if(!this.isValidKeyArray(_1d)){
-dojo.raise("Invalid key array given: "+_1d);
-}
-if(!_1e){
-_1e=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_1e)){
-throw new Error("Invalid namespace given: "+_1e);
-}
-var _1f=_1d.join(",");
-dojox.flash.comm.removeMultiple(_1f,_1e);
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return dojox.storage.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return true;
-},showSettingsUI:function(){
-dojox.flash.comm.showSettings();
-dojox.flash.obj.setVisible(true);
-dojox.flash.obj.center();
-},hideSettingsUI:function(){
-dojox.flash.obj.setVisible(false);
-if(dojo.isFunction(dojox.storage.onHideSettingsUI)){
-dojox.storage.onHideSettingsUI.call(null);
-}
-},getResourceList:function(){
-return [];
-},_loaded:function(){
-this._allNamespaces=this.getNamespaces();
-this.initialized=true;
-dojox.storage.manager.loaded();
-},_onStatus:function(_20,key,_21){
-var ds=dojox.storage;
-var dfo=dojox.flash.obj;
-if(_20==ds.PENDING){
-dfo.center();
-dfo.setVisible(true);
-}else{
-dfo.setVisible(false);
-}
-if(ds._statusHandler){
-ds._statusHandler.call(null,_20,key,null,_21);
-}
-}});
-dojox.storage.manager.register("dojox.storage.FlashStorageProvider",new dojox.storage.FlashStorageProvider());
-}
diff --git a/dojox/storage/GearsStorageProvider.js b/dojox/storage/GearsStorageProvider.js
deleted file mode 100644
index 8226aa4..0000000
--- a/dojox/storage/GearsStorageProvider.js
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.GearsStorageProvider"]){
-dojo._hasResource["dojox.storage.GearsStorageProvider"]=true;
-dojo.provide("dojox.storage.GearsStorageProvider");
-dojo.require("dojo.gears");
-dojo.require("dojox.storage.Provider");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.sql");
-if(dojo.gears.available){
-(function(){
-dojo.declare("dojox.storage.GearsStorageProvider",dojox.storage.Provider,{constructor:function(){
-},TABLE_NAME:"__DOJO_STORAGE",initialized:false,_available:null,_storageReady:false,initialize:function(){
-if(dojo.config["disableGearsStorage"]==true){
-return;
-}
-this.TABLE_NAME="__DOJO_STORAGE";
-this.initialized=true;
-dojox.storage.manager.loaded();
-},isAvailable:function(){
-return this._available=dojo.gears.available;
-},put:function(_1,_2,_3,_4){
-this._initStorage();
-if(!this.isValidKey(_1)){
-throw new Error("Invalid key given: "+_1);
-}
-_4=_4||this.DEFAULT_NAMESPACE;
-if(!this.isValidKey(_4)){
-throw new Error("Invalid namespace given: "+_1);
-}
-if(dojo.isString(_2)){
-_2="string:"+_2;
-}else{
-_2=dojo.toJson(_2);
-}
-try{
-dojox.sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = ? AND key = ?",_4,_1);
-dojox.sql("INSERT INTO "+this.TABLE_NAME+" VALUES (?, ?, ?)",_4,_1,_2);
-}
-catch(e){
-_3(this.FAILED,_1,e.toString(),_4);
-return;
-}
-if(_3){
-_3(dojox.storage.SUCCESS,_1,null,_4);
-}
-},get:function(_5,_6){
-this._initStorage();
-if(!this.isValidKey(_5)){
-throw new Error("Invalid key given: "+_5);
-}
-_6=_6||this.DEFAULT_NAMESPACE;
-if(!this.isValidKey(_6)){
-throw new Error("Invalid namespace given: "+_5);
-}
-var _7=dojox.sql("SELECT * FROM "+this.TABLE_NAME+" WHERE namespace = ? AND "+" key = ?",_6,_5);
-if(!_7.length){
-return null;
-}else{
-_7=_7[0].value;
-}
-if(dojo.isString(_7)&&(/^string:/.test(_7))){
-_7=_7.substring("string:".length);
-}else{
-_7=dojo.fromJson(_7);
-}
-return _7;
-},getNamespaces:function(){
-this._initStorage();
-var _8=[dojox.storage.DEFAULT_NAMESPACE];
-var rs=dojox.sql("SELECT namespace FROM "+this.TABLE_NAME+" DESC GROUP BY namespace");
-for(var i=0;i<rs.length;i++){
-if(rs[i].namespace!=dojox.storage.DEFAULT_NAMESPACE){
-_8.push(rs[i].namespace);
-}
-}
-return _8;
-},getKeys:function(_9){
-this._initStorage();
-_9=_9||this.DEFAULT_NAMESPACE;
-if(!this.isValidKey(_9)){
-throw new Error("Invalid namespace given: "+_9);
-}
-var rs=dojox.sql("SELECT key FROM "+this.TABLE_NAME+" WHERE namespace = ?",_9);
-var _a=[];
-for(var i=0;i<rs.length;i++){
-_a.push(rs[i].key);
-}
-return _a;
-},clear:function(_b){
-this._initStorage();
-_b=_b||this.DEFAULT_NAMESPACE;
-if(!this.isValidKey(_b)){
-throw new Error("Invalid namespace given: "+_b);
-}
-dojox.sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = ?",_b);
-},remove:function(_c,_d){
-this._initStorage();
-if(!this.isValidKey(_c)){
-throw new Error("Invalid key given: "+_c);
-}
-_d=_d||this.DEFAULT_NAMESPACE;
-if(!this.isValidKey(_d)){
-throw new Error("Invalid namespace given: "+_c);
-}
-dojox.sql("DELETE FROM "+this.TABLE_NAME+" WHERE namespace = ? AND"+" key = ?",_d,_c);
-},putMultiple:function(_e,_f,_10,_11){
-this._initStorage();
-if(!this.isValidKeyArray(_e)||!_f instanceof Array||_e.length!=_f.length){
-throw new Error("Invalid arguments: keys = ["+_e+"], values = ["+_f+"]");
-}
-if(_11==null||typeof _11=="undefined"){
-_11=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_11)){
-throw new Error("Invalid namespace given: "+_11);
-}
-this._statusHandler=_10;
-try{
-dojox.sql.open();
-dojox.sql.db.execute("BEGIN TRANSACTION");
-var _12="REPLACE INTO "+this.TABLE_NAME+" VALUES (?, ?, ?)";
-for(var i=0;i<_e.length;i++){
-var _13=_f[i];
-if(dojo.isString(_13)){
-_13="string:"+_13;
-}else{
-_13=dojo.toJson(_13);
-}
-dojox.sql.db.execute(_12,[_11,_e[i],_13]);
-}
-dojox.sql.db.execute("COMMIT TRANSACTION");
-dojox.sql.close();
-}
-catch(e){
-if(_10){
-_10(this.FAILED,_e,e.toString(),_11);
-}
-return;
-}
-if(_10){
-_10(dojox.storage.SUCCESS,_e,null,_11);
-}
-},getMultiple:function(_14,_15){
-this._initStorage();
-if(!this.isValidKeyArray(_14)){
-throw new ("Invalid key array given: "+_14);
-}
-if(_15==null||typeof _15=="undefined"){
-_15=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_15)){
-throw new Error("Invalid namespace given: "+_15);
-}
-var _16="SELECT * FROM "+this.TABLE_NAME+" WHERE namespace = ? AND "+" key = ?";
-var _17=[];
-for(var i=0;i<_14.length;i++){
-var _18=dojox.sql(_16,_15,_14[i]);
-if(!_18.length){
-_17[i]=null;
-}else{
-_18=_18[0].value;
-if(dojo.isString(_18)&&(/^string:/.test(_18))){
-_17[i]=_18.substring("string:".length);
-}else{
-_17[i]=dojo.fromJson(_18);
-}
-}
-}
-return _17;
-},removeMultiple:function(_19,_1a){
-this._initStorage();
-if(!this.isValidKeyArray(_19)){
-throw new Error("Invalid arguments: keys = ["+_19+"]");
-}
-if(_1a==null||typeof _1a=="undefined"){
-_1a=dojox.storage.DEFAULT_NAMESPACE;
-}
-if(!this.isValidKey(_1a)){
-throw new Error("Invalid namespace given: "+_1a);
-}
-dojox.sql.open();
-dojox.sql.db.execute("BEGIN TRANSACTION");
-var _1b="DELETE FROM "+this.TABLE_NAME+" WHERE namespace = ? AND key = ?";
-for(var i=0;i<_19.length;i++){
-dojox.sql.db.execute(_1b,[_1a,_19[i]]);
-}
-dojox.sql.db.execute("COMMIT TRANSACTION");
-dojox.sql.close();
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return this.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},hideSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},_initStorage:function(){
-if(this._storageReady){
-return;
-}
-if(!google.gears.factory.hasPermission){
-var _1c=null;
-var _1d=null;
-var msg="This site would like to use Google Gears to enable "+"enhanced functionality.";
-var _1e=google.gears.factory.getPermission(_1c,_1d,msg);
-if(!_1e){
-throw new Error("You must give permission to use Gears in order to "+"store data");
-}
-}
-try{
-dojox.sql("CREATE TABLE IF NOT EXISTS "+this.TABLE_NAME+"( "+" namespace TEXT, "+" key TEXT, "+" value TEXT "+")");
-dojox.sql("CREATE UNIQUE INDEX IF NOT EXISTS namespace_key_index"+" ON "+this.TABLE_NAME+" (namespace, key)");
-}
-catch(e){
-throw new Error("Unable to create storage tables for Gears in "+"Dojo Storage");
-}
-this._storageReady=true;
-}});
-dojox.storage.manager.register("dojox.storage.GearsStorageProvider",new dojox.storage.GearsStorageProvider());
-})();
-}
-}
diff --git a/dojox/storage/Provider.js b/dojox/storage/Provider.js
deleted file mode 100644
index 874b13c..0000000
--- a/dojox/storage/Provider.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.Provider"]){
-dojo._hasResource["dojox.storage.Provider"]=true;
-dojo.provide("dojox.storage.Provider");
-dojo.declare("dojox.storage.Provider",null,{constructor:function(){
-},SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",DEFAULT_NAMESPACE:"default",onHideSettingsUI:null,initialize:function(){
-console.warn("dojox.storage.initialize not implemented");
-},isAvailable:function(){
-console.warn("dojox.storage.isAvailable not implemented");
-},put:function(_1,_2,_3,_4){
-console.warn("dojox.storage.put not implemented");
-},get:function(_5,_6){
-console.warn("dojox.storage.get not implemented");
-},hasKey:function(_7,_8){
-return !!this.get(_7,_8);
-},getKeys:function(_9){
-console.warn("dojox.storage.getKeys not implemented");
-},clear:function(_a){
-console.warn("dojox.storage.clear not implemented");
-},remove:function(_b,_c){
-console.warn("dojox.storage.remove not implemented");
-},getNamespaces:function(){
-console.warn("dojox.storage.getNamespaces not implemented");
-},isPermanent:function(){
-console.warn("dojox.storage.isPermanent not implemented");
-},getMaximumSize:function(){
-console.warn("dojox.storage.getMaximumSize not implemented");
-},putMultiple:function(_d,_e,_f,_10){
-for(var i=0;i<_d.length;i++){
-dojox.storage.put(_d[i],_e[i],_f,_10);
-}
-},getMultiple:function(_11,_12){
-var _13=[];
-for(var i=0;i<_11.length;i++){
-_13.push(dojox.storage.get(_11[i],_12));
-}
-return _13;
-},removeMultiple:function(_14,_15){
-for(var i=0;i<_14.length;i++){
-dojox.storage.remove(_14[i],_15);
-}
-},isValidKeyArray:function(_16){
-if(_16===null||_16===undefined||!dojo.isArray(_16)){
-return false;
-}
-return !dojo.some(_16,function(key){
-return !this.isValidKey(key);
-},this);
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-console.warn("dojox.storage.showSettingsUI not implemented");
-},hideSettingsUI:function(){
-console.warn("dojox.storage.hideSettingsUI not implemented");
-},isValidKey:function(_17){
-if(_17===null||_17===undefined){
-return false;
-}
-return /^[0-9A-Za-z_]*$/.test(_17);
-},getResourceList:function(){
-return [];
-}});
-}
diff --git a/dojox/storage/README b/dojox/storage/README
deleted file mode 100644
index 28cd2a9..0000000
--- a/dojox/storage/README
+++ /dev/null
@@ -1,76 +0,0 @@
--------------------------------------------------------------------------------
-Dojo Storage
--------------------------------------------------------------------------------
-Version X.XXX (does not have separate versioning -- versioned by release date)
-Last Release date: March 2008
--------------------------------------------------------------------------------
-Project state:
-experimental
--------------------------------------------------------------------------------
-Credits
-	Brad Neuberg
-	Alex Russell
--------------------------------------------------------------------------------
-Project description
-
-dojox.storage provides a JavaScript abstraction for persistent storage
-as well as pluggable implementations which typically use native browser extensions
-(e.g. Flash player, Gears)
-
--------------------------------------------------------------------------------
-Dependencies:
-
-FlashStorageProvider requires the Flash player
-GearsStorageProvider requires the Gears extension
-The various Air*StorageProviders require Adobe's AIR software
-
-The open source mtasc compiler (www.mtasc.org) is needed to build the
-ActionScript into SWF format.  The SWF object is maintained within svn, so
-this step is only necessary if Storage.as is modified.  A sample build script
-is provided (buildFlashStorage.sh)
-
--------------------------------------------------------------------------------
-Documentation
-
-See http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book50 for the
-authoritative Dojo Storage docs.
-
-See dojox/storage/demos/helloworld.html for a simple Hello World example
-you can base your code off of.
-
--------------------------------------------------------------------------------
-Installation instructions
-
-If you want to use Dojo Storage in a web browser:
-
-These installation instructions are to use Dojo Storage in a web browser; at
-runtime, Dojo Storage will autodetect and use the best available storage
-option. This includes:
-
-  * Google Gears
-  * HTML 5 Web Browsers (Firefox 2+)
-  * Hidden Flash
-  
-If you are using a release build (if you downloaded Dojo from the Dojo
-website then this is a release build -- if you checked it out from
-Subversion yourself then you will have to build things yourself), if you 
-only want to grab just the files from Dojo to use Dojo Storage
-in the browser, take the following (but make sure to keep the directory
-layout the same, or else things won't work correctly!):
-
-* dojo/dojo.js
-* dojox/storage/storage-browser.js
-* dojox/storage/Storage.swf
-
-To help with testing and development and to make sure you have everything 
-right, its also useful to grab the following files:
-
-* dojox/storage/README
-* dojox/storage/demos/helloworld.html
-
-If you want to use Dojo Storage with Adobe AIR:
-
-[TBD! Why don't you write this and contribute!]
-
--------------------------------------------------------------------------------
-Additional Notes
diff --git a/dojox/storage/Storage.as b/dojox/storage/Storage.as
deleted file mode 100644
index 89ec67d..0000000
--- a/dojox/storage/Storage.as
+++ /dev/null
@@ -1,402 +0,0 @@
-import DojoExternalInterface;
-
-class Storage{
-	public static var SUCCESS = "success";
-	public static var FAILED = "failed";
-	public static var PENDING = "pending";
-	
-	//	Wait the following number of milliseconds before flushing
-	public static var FLUSH_DELAY_DEFAULT = 500;
-	
-	public var flush_delay;
-	public var so;
-	public var timer;
-	
-	private var _NAMESPACE_KEY = "allNamespaces";
-	
-	public function Storage(){
-		flush_delay = Storage.FLUSH_DELAY_DEFAULT;
-	
-		DojoExternalInterface.initialize();
-		DojoExternalInterface.addCallback("put", this, put);
-		DojoExternalInterface.addCallback("putMultiple", this, putMultiple);
-		DojoExternalInterface.addCallback("get", this, get);
-		DojoExternalInterface.addCallback("getMultiple", this, getMultiple);
-		DojoExternalInterface.addCallback("showSettings", this, showSettings);
-		DojoExternalInterface.addCallback("clear", this, clear);
-		DojoExternalInterface.addCallback("getKeys", this, getKeys);
-		DojoExternalInterface.addCallback("getNamespaces", this, getNamespaces);
-		DojoExternalInterface.addCallback("remove", this, remove);
-		DojoExternalInterface.addCallback("removeMultiple", this, removeMultiple);
-		DojoExternalInterface.addCallback("flush", this, flush);
-		DojoExternalInterface.addCallback("setFlushDelay", this, setFlushDelay);
-		DojoExternalInterface.addCallback("getFlushDelay", this, getFlushDelay);
-		DojoExternalInterface.loaded();
-		
-		// preload the System Settings finished button movie for offline
-		// access so it is in the cache
-		_root.createEmptyMovieClip("_settingsBackground", 1);
-		_root._settingsBackground.loadMovie(DojoExternalInterface.dojoPath 
-																				+ "../dojox/storage/storage_dialog.swf");
-	}
-
-  //  FIXME: Whoever added this Flush code did not document why it
-  //  exists. Please also put your name and a bug number so I know 
-  //  who to contact. -- Brad Neuberg
-	
-	//	Set a new value for the flush delay timer.
-	//	Possible values:
-	//	  0 : Perform the flush synchronously after each "put" request
-	//	> 0 : Wait until 'newDelay' ms have passed without any "put" request to flush
-	//	 -1 : Do not automatically flush
-	public function setFlushDelay(newDelay){
-		flush_delay = Number(newDelay);
-	}
-	
-	public function getFlushDelay(){
-		return String(flush_delay);
-	}
-	
-	public function flush(namespace){
-		if(timer){
-			_global.clearTimeout(timer);
-			delete timer;
-		}
-	
-		var so = SharedObject.getLocal(namespace);
-		var flushResults = so.flush();
-
-		// return results of this command to JavaScript
-		var statusResults;
-		if(flushResults == true){
-			statusResults = Storage.SUCCESS;
-		}else if(flushResults == "pending"){
-			statusResults = Storage.PENDING;
-		}else{
-			statusResults = Storage.FAILED;
-		}
-		
-		DojoExternalInterface.call("dojox.storage._onStatus", statusResults, 
-		                            null, namespace);
-	}
-
-	public function put(keyName, keyValue, namespace){
-		// Get the SharedObject for these values and save it
-		so = SharedObject.getLocal(namespace);
-		
-		//  Save the key and value
-		so.data[keyName] = keyValue;
-		
-		// Save the namespace
-		// FIXME: Tie this into the flush/no-flush stuff below; right now
-		// we immediately write out this namespace. -- Brad Neuberg
-    addNamespace(namespace, keyName);
-
-		//	Do all the flush/no-flush stuff
-		var keyNames = new Array(); 
-		keyNames[0] = keyName;
-		postWrite(so, keyNames, namespace);
-	}
-	
-	public function putMultiple(metaKey, metaValue, metaLengths, namespace){
-		// Get the SharedObject for these values and save it
-		so = SharedObject.getLocal(namespace);
-		
-		//	Create array of keys and value lengths
-		var keys = metaKey.split(",");
-		var lengths = metaLengths.split(",");
-		
-		//	Loop through the array and write the values
-		for(var i = 0; i < keys.length; i++){
-			so.data[keys[i]] = metaValue.slice(0,lengths[i]);
-			metaValue = metaValue.slice(lengths[i]);
-		}
-		
-		// Save the namespace
-		// FIXME: Tie this into the flush/no-flush stuff below; right now
-		// we immediately write out this namespace. -- Brad Neuberg
-    addNamespace(namespace, null);
-		
-		//	Do all the flush/no-flush stuff
-		postWrite(so, keys, namespace);
-	}
-
-	public function postWrite(so, keyNames, namespace){
-		//	TODO: Review all this 'handler' stuff. In particular, the flush 
-		//  could now be with keys pending from several different requests, not 
-		//  only the ones passed in this method call
-
-		// prepare a storage status handler
-		var self = this;
-		so.onStatus = function(infoObject:Object){
-			//trace("onStatus, infoObject="+infoObject.code);
-			
-			// delete the data value if the request was denied
-			if(infoObject.code == "SharedObject.Flush.Failed"){
-				for(var i=0;i<keyNames.length;i++){
-					delete self.so.data[keyNames[i]];
-				}
-			}
-			
-			var statusResults;
-			if(infoObject.code == "SharedObject.Flush.Failed"){
-				statusResults = Storage.FAILED;
-			}else if(infoObject.code == "SharedObject.Flush.Pending"){
-				statusResults = Storage.PENDING;
-			}else if(infoObject.code == "SharedObject.Flush.Success"){
-				// if we have succeeded saving our value, see if we
-				// need to update our list of namespaces
-				if(self.hasNamespace(namespace) == true){
-					statusResults = Storage.SUCCESS;
-				}else{
-					// we have a new namespace we must store
-					self.addNamespace(namespace, keyNames[0]);
-					return;
-				}
-			}
-			//trace("onStatus, statusResults="+statusResults);
-			
-			// give the status results to JavaScript
-			DojoExternalInterface.call("dojox.storage._onStatus", statusResults, 
-			                            keyNames[0], namespace);
-		}
-		
-		//	Clear any pending flush timers
-		if(timer){
-			_global.clearTimeout(timer);
-		}
-		
-		//	If we have a flush delay set, set a timer for its execution
-		if(flush_delay > 0){
-			timer = _global.setTimeout(flush, flush_delay, namespace);
-		//	With a flush_delay value of 0, execute the flush request synchronously
-		}else if(flush_delay == 0){
-			flush(namespace);
-		}
-		//	Otherwise just don't flush - will be probably be flushed manually
-	}
-
-	public function get(keyName, namespace){
-		// Get the SharedObject for these values and save it
-		so = SharedObject.getLocal(namespace);
-		var results = so.data[keyName];
-		
-		return results;
-	}
-	
-	//	Returns an array with the contents of each key value on the metaKeys array
-	public function getMultiple(metaKeys, namespace){
-		//	get the storage object
-		so = SharedObject.getLocal(namespace);
-		
-		//	Create array of keys to read
-		var keys = metaKeys.split(",");
-		var results = new Array();
-		
-		//	Read from storage into results array
-		for(var i = 0;i < keys.length;i++){
-			var val = so.data[keys[i]];
-			val = val.split("\\").join("\\\\");
-			val = val.split('"').join('\\"');
-			results.push( val);
-		}
-			
-		//	Make the results array into a string
-		var metaResults = '["' + results.join('","') + '"]';
-		
-		return metaResults;
-	}	
-	
-	public function showSettings(){
-		// Show the configuration options for the Flash player, opened to the
-		// section for local storage controls (pane 1)
-		System.showSettings(1);
-		
-		// there is no way we can intercept when the Close button is pressed, allowing us
-		// to hide the Flash dialog. Instead, we need to load a movie in the
-		// background that we can show a close button on.
-		_root.createEmptyMovieClip("_settingsBackground", 1);
-		_root._settingsBackground.loadMovie(DojoExternalInterface.dojoPath 
-																				+ "../dojox/storage/storage_dialog.swf");
-	}
-	
-	public function clear(namespace){
-		so = SharedObject.getLocal(namespace);
-		so.clear();
-		so.flush();
-		
-		// remove this namespace entry now
-		removeNamespace(namespace);
-	}
-	
-	public function getKeys(namespace) : String{
-		// Returns a list of the available keys in this namespace
-		
-		// get the storage object
-		so = SharedObject.getLocal(namespace);
-		// get all of the keys
-		var results = [];
-		for(var i in so.data){
-			results.push(i);	
-		}
-		
-		// remove our key that records our list of namespaces
-		for(var i = 0; i < results.length; i++){
-			if(results[i] == _NAMESPACE_KEY){
-				results.splice(i, 1);
-				break;
-			}
-		}
-		
-		// a bug in ExternalInterface transforms Arrays into
-		// Strings, so we can't use those here! -- BradNeuberg
-		results = results.join(",");
-		
-		return results;
-	}
-	
-	public function getNamespaces() : String{
-		var allNamespaces = SharedObject.getLocal(_NAMESPACE_KEY);
-		var results = [];
-		
-		for(var i in allNamespaces.data){
-			results.push(i);
-		}
-		
-		// a bug in ExternalInterface transforms Arrays into
-		// Strings, so we can use those here! -- BradNeuberg
-		results = results.join(",");
-		
-		return results;
-	}
-	
-	public function remove(keyName, namespace){
-		// Removes a key
-
-		// get the storage object
-		so = SharedObject.getLocal(namespace);
-		
-		// delete this value
-		delete so.data[keyName];
-		
-		// save the changes
-		so.flush();
-		
-		// see if we are the last entry for this namespace
-		var availableKeys = getKeys(namespace);
-		if(availableKeys == ""){
-			// we are empty
-			removeNamespace(namespace);
-		}
-	}
-	
-	//	Removes all the values for each keys on the metaKeys array
-	public function removeMultiple(metaKeys, namespace){		
-		//	get the storage object
-		so = SharedObject.getLocal(namespace);
-		
-		//	Create array of keys to read
-		var keys = metaKeys.split(",");
-		var results = new Array();
-
-		//	Delete elements
-		for(var i=0;i<keys.length;i++){
-			delete so.data[keys[i]];
-		}
-
-		// see if there are no more entries for this namespace
-		var availableKeys = getKeys(namespace);
-		if(availableKeys == ""){
-			// we are empty
-			removeNamespace(namespace);
-		}
-	}
-	
-	private function hasNamespace(namespace):Boolean{
-		// Get the SharedObject for the namespace list
-		var allNamespaces = SharedObject.getLocal(_NAMESPACE_KEY);
-		
-		var results = false;
-		for(var i in allNamespaces.data){
-			if(i == namespace){
-				results = true;
-				break;
-			}
-		}
-		
-		return results;
-	}
-	
-	// FIXME: This code has gotten ugly -- refactor
-	private function addNamespace(namespace, keyName){
-		if(hasNamespace(namespace) == true){
-			return;
-		}
-		
-		// Get the SharedObject for the namespace list
-		var allNamespaces = SharedObject.getLocal(_NAMESPACE_KEY);
-		
-		// prepare a storage status handler if the keyName is
-		// not null
-		if(keyName != null && typeof keyName != "undefined"){
-			var self = this;
-			allNamespaces.onStatus = function(infoObject:Object){
-				// delete the data value if the request was denied
-				if(infoObject.code == "SharedObject.Flush.Failed"){
-					delete self.so.data[keyName];
-				}
-				
-				var statusResults;
-				if(infoObject.code == "SharedObject.Flush.Failed"){
-					statusResults = Storage.FAILED;
-				}else if(infoObject.code == "SharedObject.Flush.Pending"){
-					statusResults = Storage.PENDING;
-				}else if(infoObject.code == "SharedObject.Flush.Success"){
-					statusResults = Storage.SUCCESS;
-				}
-				
-				// give the status results to JavaScript
-				DojoExternalInterface.call("dojox.storage._onStatus", statusResults, 
-				                            keyName, namespace);
-			}
-		}
-		
-		// save the namespace list
-		allNamespaces.data[namespace] = true;
-		var flushResults = allNamespaces.flush();
-		
-		// return results of this command to JavaScript
-		if(keyName != null && typeof keyName != "undefined"){
-			var statusResults;
-			if(flushResults == true){
-				statusResults = Storage.SUCCESS;
-			}else if(flushResults == "pending"){
-				statusResults = Storage.PENDING;
-			}else{
-				statusResults = Storage.FAILED;
-			}
-			
-			DojoExternalInterface.call("dojox.storage._onStatus", statusResults, 
-			                            keyName, namespace);
-		}
-	}
-	
-	// FIXME: This code has gotten ugly -- refactor
-	private function removeNamespace(namespace){
-		if(hasNamespace(namespace) == false){
-			return;
-		}
-		
-		// try to save the namespace list; don't have a return
-		// callback; if we fail on this, the worst that will happen
-		// is that we have a spurious namespace entry
-		var allNamespaces = SharedObject.getLocal(_NAMESPACE_KEY);
-		delete allNamespaces.data[namespace];
-		allNamespaces.flush();
-	}
-
-	static function main(mc){
-		_root.app = new Storage(); 
-	}
-}
-
diff --git a/dojox/storage/Storage.swf b/dojox/storage/Storage.swf
deleted file mode 100644
index 9a09f70..0000000
Binary files a/dojox/storage/Storage.swf and /dev/null differ
diff --git a/dojox/storage/WhatWGStorageProvider.js b/dojox/storage/WhatWGStorageProvider.js
deleted file mode 100644
index d44118c..0000000
--- a/dojox/storage/WhatWGStorageProvider.js
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.WhatWGStorageProvider"]){
-dojo._hasResource["dojox.storage.WhatWGStorageProvider"]=true;
-dojo.provide("dojox.storage.WhatWGStorageProvider");
-dojo.require("dojox.storage.Provider");
-dojo.require("dojox.storage.manager");
-dojo.declare("dojox.storage.WhatWGStorageProvider",[dojox.storage.Provider],{initialized:false,_domain:null,_available:null,_statusHandler:null,_allNamespaces:null,_storageEventListener:null,initialize:function(){
-if(dojo.config["disableWhatWGStorage"]==true){
-return;
-}
-this._domain=location.hostname;
-this.initialized=true;
-dojox.storage.manager.loaded();
-},isAvailable:function(){
-try{
-var _1=globalStorage[location.hostname];
-}
-catch(e){
-this._available=false;
-return this._available;
-}
-this._available=true;
-return this._available;
-},put:function(_2,_3,_4,_5){
-if(this.isValidKey(_2)==false){
-throw new Error("Invalid key given: "+_2);
-}
-_5=_5||this.DEFAULT_NAMESPACE;
-_2=this.getFullKey(_2,_5);
-this._statusHandler=_4;
-if(dojo.isString(_3)){
-_3="string:"+_3;
-}else{
-_3=dojo.toJson(_3);
-}
-var _6=dojo.hitch(this,function(_7){
-window.removeEventListener("storage",_6,false);
-if(_4){
-_4.call(null,this.SUCCESS,_2,null,_5);
-}
-});
-window.addEventListener("storage",_6,false);
-try{
-var _8=globalStorage[this._domain];
-_8.setItem(_2,_3);
-}
-catch(e){
-this._statusHandler.call(null,this.FAILED,_2,e.toString(),_5);
-}
-},get:function(_9,_a){
-if(this.isValidKey(_9)==false){
-throw new Error("Invalid key given: "+_9);
-}
-_a=_a||this.DEFAULT_NAMESPACE;
-_9=this.getFullKey(_9,_a);
-var _b=globalStorage[this._domain];
-var _c=_b.getItem(_9);
-if(_c==null||_c==""){
-return null;
-}
-_c=_c.value;
-if(dojo.isString(_c)&&(/^string:/.test(_c))){
-_c=_c.substring("string:".length);
-}else{
-_c=dojo.fromJson(_c);
-}
-return _c;
-},getNamespaces:function(){
-var _d=[this.DEFAULT_NAMESPACE];
-var _e={};
-var _f=globalStorage[this._domain];
-var _10=/^__([^_]*)_/;
-for(var i=0;i<_f.length;i++){
-var _11=_f.key(i);
-if(_10.test(_11)==true){
-var _12=_11.match(_10)[1];
-if(typeof _e[_12]=="undefined"){
-_e[_12]=true;
-_d.push(_12);
-}
-}
-}
-return _d;
-},getKeys:function(_13){
-_13=_13||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_13)==false){
-throw new Error("Invalid namespace given: "+_13);
-}
-var _14;
-if(_13==this.DEFAULT_NAMESPACE){
-_14=new RegExp("^([^_]{2}.*)$");
-}else{
-_14=new RegExp("^__"+_13+"_(.*)$");
-}
-var _15=globalStorage[this._domain];
-var _16=[];
-for(var i=0;i<_15.length;i++){
-var _17=_15.key(i);
-if(_14.test(_17)==true){
-_17=_17.match(_14)[1];
-_16.push(_17);
-}
-}
-return _16;
-},clear:function(_18){
-_18=_18||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_18)==false){
-throw new Error("Invalid namespace given: "+_18);
-}
-var _19;
-if(_18==this.DEFAULT_NAMESPACE){
-_19=new RegExp("^[^_]{2}");
-}else{
-_19=new RegExp("^__"+_18+"_");
-}
-var _1a=globalStorage[this._domain];
-var _1b=[];
-for(var i=0;i<_1a.length;i++){
-if(_19.test(_1a.key(i))==true){
-_1b[_1b.length]=_1a.key(i);
-}
-}
-dojo.forEach(_1b,dojo.hitch(_1a,"removeItem"));
-},remove:function(key,_1c){
-key=this.getFullKey(key,_1c);
-var _1d=globalStorage[this._domain];
-_1d.removeItem(key);
-},isPermanent:function(){
-return true;
-},getMaximumSize:function(){
-return this.SIZE_NO_LIMIT;
-},hasSettingsUI:function(){
-return false;
-},showSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},hideSettingsUI:function(){
-throw new Error(this.declaredClass+" does not support a storage settings user-interface");
-},getFullKey:function(key,_1e){
-_1e=_1e||this.DEFAULT_NAMESPACE;
-if(this.isValidKey(_1e)==false){
-throw new Error("Invalid namespace given: "+_1e);
-}
-if(_1e==this.DEFAULT_NAMESPACE){
-return key;
-}else{
-return "__"+_1e+"_"+key;
-}
-}});
-dojox.storage.manager.register("dojox.storage.WhatWGStorageProvider",new dojox.storage.WhatWGStorageProvider());
-}
diff --git a/dojox/storage/_common.js b/dojox/storage/_common.js
deleted file mode 100644
index d92bf22..0000000
--- a/dojox/storage/_common.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage._common"]){
-dojo._hasResource["dojox.storage._common"]=true;
-dojo.provide("dojox.storage._common");
-dojo.require("dojox.storage.Provider");
-dojo.require("dojox.storage.manager");
-dojo.require("dojox.storage.GearsStorageProvider");
-dojo.require("dojox.storage.WhatWGStorageProvider");
-dojo.require("dojox.storage.FlashStorageProvider");
-dojox.storage.manager.initialize();
-}
diff --git a/dojox/storage/buildFlashStorage.sh b/dojox/storage/buildFlashStorage.sh
deleted file mode 100644
index 892dca1..0000000
--- a/dojox/storage/buildFlashStorage.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# TODO: FIXME: Get rid of this and hook it into Dojo's general build script
-# You must have mtasc to run this
-mtasc -trace DojoExternalInterface.trace -main -cp ../flash -swf Storage.swf -version 8 -header 215:138:10 Storage.as
diff --git a/dojox/storage/manager.js b/dojox/storage/manager.js
deleted file mode 100644
index 1e97f59..0000000
--- a/dojox/storage/manager.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
-	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
-	Available via Academic Free License >= 2.1 OR the modified BSD license.
-	see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dojox.storage.manager"]){
-dojo._hasResource["dojox.storage.manager"]=true;
-dojo.provide("dojox.storage.manager");
-dojox.storage.manager=new function(){
-this.currentProvider=null;
-this.available=false;
-this.providers=[];
-this._initialized=false;
-this._onLoadListeners=[];
-this.initialize=function(){
-this.autodetect();
-};
-this.register=function(_1,_2){
-this.providers.push(_2);
-this.providers[_1]=_2;
-};
-this.setProvider=function(_3){
-};
-this.autodetect=function(){
-if(this._initialized){
-return;
-}
-var _4=dojo.config["forceStorageProvider"]||false;
-var _5;
-for(var i=0;i<this.providers.length;i++){
-_5=this.providers[i];
-if(_4&&_4==_5.declaredClass){
-_5.isAvailable();
-break;
-}else{
-if(!_4&&_5.isAvailable()){
-break;
-}
-}
-}
-if(!_5){
-this._initialized=true;
-this.available=false;
-this.currentProvider=null;
-console.warn("No storage provider found for this platform");
-this.loaded();
-return;
-}
-this.currentProvider=_5;
-dojo.mixin(dojox.storage,this.currentProvider);
-dojox.storage.initialize();
-this._initialized=true;
-this.available=true;
-};
-this.isAvailable=function(){
-return this.available;
-};
-this.addOnLoad=function(_6){
-this._onLoadListeners.push(_6);
-if(this.isInitialized()){
-this._fireLoaded();
-}
-};
-this.removeOnLoad=function(_7){
-for(var i=0;i<this._onLoadListeners.length;i++){
-if(_7==this._onLoadListeners[i]){
-this._onLoadListeners=this._onLoadListeners.splice(i,1);
-break;
-}
-}
-};
-this.isInitialized=function(){
-if(this.currentProvider!=null&&this.currentProvider.declaredClass=="dojox.storage.FlashStorageProvider"&&dojox.flash.ready==false){
-return false;
-}else{
-return this._initialized;
-}
-};
-this.supportsProvider=function(_8){
-try{
-var _9=eval("new "+_8+"()");
-var _a=_9.isAvailable();
-if(!_a){
-return false;
-}
-return _a;
-}
-catch(e){
-return false;
-}
-};
-this.getProvider=function(){
-return this.currentProvider;
-};
-this.loaded=function(){
-this._fireLoaded();
-};
-this._fireLoaded=function(){
-dojo.forEach(this._onLoadListeners,function(i){
-try{
-i();
-}
-catch(e){
-}
-});
-};
-this.getResourceList=function(){
-var _b=[];
-dojo.forEach(dojox.storage.manager.providers,function(_c){
-_b=_b.concat(_c.getResourceList());
-});
-return _b;
-};
-};
-}
diff --git a/dojox/storage/storage_dialog.fla b/dojox/storage/storage_dialog.fla
deleted file mode 100644
index 8e9a093..0000000
Binary files a/dojox/storage/storage_dialog.fla and /dev/null differ
diff --git a/dojox/storage/storage_dialog.swf b/dojox/storage/storage_dialog.swf
deleted file mode 100644
index db6b217..0000000
Binary files a/dojox/storage/storage_dialog.swf and /dev/null differ

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list