Sha256: 77986615a94d6498cbe7909c5c218d885ff695258253c0f1430cb5f61bb1eb95

Contents?: true

Size: 516 Bytes

Versions: 5

Compression:

Stored size: 516 Bytes

Contents

var data =  {
		local: function(name, value){
			if(value === undefined){ //Get
				byteValue = air.EncryptedLocalStore.getItem(name);
				if (byteValue){
					return byteValue.readUTFBytes(byteValue.bytesAvailable);
				}
				else
					return null;
			}
			else { //Set
				air.EncryptedLocalStore.removeItem(name);
				if(value != null){
					var data = new air.ByteArray();
					data.writeUTFBytes(value);
					air.EncryptedLocalStore.setItem(name, data);
				}
				return value;
			}
		}
};

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scms-1.8.8 assets/blank-app-template/public/scripts/shared/data-persistance.js
scms-1.8.7 assets/blank-app-template/public/scripts/shared/data-persistance.js
scms-1.8.6 assets/blank-app-template/public/scripts/shared/data-persistance.js
scms-1.7.9 assets/blank-app-template/public/scripts/shared/data-persistance.js
scms-1.7.8 assets/blank-app-template/public/scripts/shared/data-persistance.js