_mapDelegateCallback: function (pluginResult) {
		var eventType = pluginResult['eventType']; // the Objective-C selector's name

		if (_.isFunction(Delegate[eventType])) {
            Delegate[eventType](pluginResult);
            this.delegate[eventType](pluginResult);
        } else {
            console.error('Delegate unable to handle eventType: ' + eventType);
        }
    },
Example #2
0
LocationManager.prototype._mapDelegateCallback = function (pluginResult) {
	var eventType = pluginResult['eventType']; // the Objective-C selector's name
	
	this.appendToDeviceLog('_mapDelegateCallback() found eventType ' + eventType);

	if (_.isFunction(this.delegate[eventType])) {
		this.delegate[eventType](pluginResult);
	} else {
		console.error('Delegate unable to handle eventType: ' + eventType);
	}
};
Example #3
0
	preProcessors = _.filter(preProcessors, function(preProcessor) {
		return _.isFunction(preProcessor);
	});