/**
 * Creates a GeoCallbackRegistration instance.
 */ export class GeoCallbackRegistration { param _cancelCallback constructor ( private _cancelCallback ) { if ( Object . prototype . toString . call ( this . _cancelCallback ) !== '[object Function]' ) { throw new Error ( 'callback must be a function' ) ; } } /********************/ /********************/ /**
     * Cancels this callback registration so that it no longer fires its callback. This
     * has no effect on any other callback registrations you may have created.
     */ public cancel ( ) { if ( typeof this . _cancelCallback !== 'undefined' ) { this . _cancelCallback ( ) ; this . _cancelCallback = undefined ; } } }