Example #1
0
Regions.fromJsonArray = function(jsonArray) {
	if (!_.isArray(jsonArray)) {
		throw new TypeError('Expected an array.');
	}
		
	var result = [];
	_.each(jsonArray, function(region) {
		result.push(Regions.fromJson(region));
	});
	return result;
};
Example #2
0
LocationManager.prototype._preProcessorExecutor = function (resolve, pluginResult, preProcessors) {
	_.each(preProcessors, function (preProcessor) {
		pluginResult = preProcessor(pluginResult);
	});
	resolve(pluginResult);
};
	_preProcessorExecutor: function (resolve, pluginResult, preProcessors) {
		_.each(preProcessors, function (preProcessor) {
			pluginResult = preProcessor(pluginResult);
        });
        resolve(pluginResult);
    },