encoder.js
function( propertyTable, eid ) {
		// Check if we have a BST for this type
		if (this.indexVal[eid] !== undefined) {
			var id = this.indexVal[eid].search( propertyTable );
			if (id.length > 0) return id[0];
		}
		// We don't have the item or the BST
		return -1;
	}
function( propertyTable, eid ) {
		// Check if we have a BST for this type
		if (this.indexVal[eid] !== undefined) {
			var id = this.indexVal[eid].search( propertyTable );
			if (id.length > 0) return id[0];
		}
		// We don't have the item or the BST
		return -1;
	}
function ( propertyTable , eid ) { // Check if we have a BST for this type if ( this . indexVal [ eid ] !== undefined ) { var id = this . indexVal [ eid ] . search ( propertyTable ) ; if ( id . length > 0 ) return id [ 0 ] ; } // We don't have the item or the BST return - 1 ; }
Lookup if that object already exits in the i-ref table
and return it's ID, using it's values and not it's contents.
Lookup if that object already exits in the i - ref table and return it s ID using it s values and not it s contents .