plugin/src/js/EstimoteBeacons.js
function helper_createTriggerObject(trigger)
{
	var triggerObject = {};

	triggerObject.triggerIdentifier = trigger.identifier;

	triggerObject.rules = [];
	for (var i = 0; i < trigger.rules.length; ++i)
	{
		var rule = trigger.rules[i];
		triggerObject.rules.push({
			ruleType: rule.ruleType,
			ruleIdentifier: rule.ruleIdentifier,
			nearableIdentifier: rule.nearableIdentifier,
			nearableType: rule.nearableType });
	}

	return triggerObject;
}
function helper_createTriggerObject(trigger)
{
	var triggerObject = {};

	triggerObject.triggerIdentifier = trigger.identifier;

	triggerObject.rules = [];
	for (var i = 0; i < trigger.rules.length; ++i)
	{
		var rule = trigger.rules[i];
		triggerObject.rules.push({
			ruleType: rule.ruleType,
			ruleIdentifier: rule.ruleIdentifier,
			nearableIdentifier: rule.nearableIdentifier,
			nearableType: rule.nearableType });
	}

	return triggerObject;
}
function helper_createTriggerObject ( trigger ) { var triggerObject = { } ; triggerObject . triggerIdentifier = trigger . identifier ; triggerObject . rules = [ ] ; for ( var i = 0 ; i < trigger . rules . length ; ++ i ) { var rule = trigger . rules [ i ] ; triggerObject . rules . push ( { ruleType : rule . ruleType , ruleIdentifier : rule . ruleIdentifier , nearableIdentifier : rule . nearableIdentifier , nearableType : rule . nearableType } ) ; } return triggerObject ; }
Helper function that creates an internal 'lightweight'
trigger object sent to the native side.
@private
Helper function that creates an internal lightweight trigger object sent to the native side .