IHM/assets/js/m3d_db.js
/**
 * Create ObjectStore of entity.
 * @private
 */
Create ObjectStore of entity.
@private
Create ObjectStore of entity . @private
function idbCreate_entity() {	
	var request = db.setVersion('1');
	request.onerror = function(e){log("Error: IndexedDB create entity");};
	request.onsuccess = function(e) {
		if (!db.objectStoreNames.contains('entity')) {
			try {				
				db.createObjectStore('entity', {keyPath: 'id'});
				log("Object store entity created");
			} catch (err) {	
				log("Error: IndexedDB create entity");
			}
		} else {
			log("Object store entity already exists");
		}
	}
}
function idbCreate_entity ( ) { var request = db . setVersion ( '1' ) ; request . onerror = function ( e ) { log ( "Error: IndexedDB create entity" ) ; } ; request . onsuccess = function ( e ) { if ( ! db . objectStoreNames . contains ( 'entity' ) ) { try { db . createObjectStore ( 'entity' , { keyPath : 'id' } ) ; log ( "Object store entity created" ) ; } catch ( err ) { log ( "Error: IndexedDB create entity" ) ; } } else { log ( "Object store entity already exists" ) ; } } }
Create ObjectStore of entity.
Create ObjectStore of entity .
// name, url, position of entity 
