export const noOp = ( ) => { } ; export class IdentifierIndexMap { private identifiers : Map < number , number > = new Map ( ) ; public GetIndexFromIdentifier ( identifier ) { return this . identifiers . get ( identifier ) ; } public Remove ( identifier ) { delete this . identifiers . delete ( identifier ) ; } public Add ( identifier ) { let num = 0 ; for ( let value of this . identifiers . values ( ) ) { if ( value === num ) { num ++ ; } } this . identifiers . set ( identifier , num ) ; return num ; } } export function isCordovaIOS ( ) { return ! ! window . cordova && cordova . platformId === 'ios' ; }