function () {
			var tempRules = Storage.getRules(),
				loadingFromAdditionalRuleSets = this.model.getProperty("/loadingAdditionalRuleSets");

			if (tempRules && !loadingFromAdditionalRuleSets && !this.tempRulesLoaded) {
				this.tempRulesFromStorage = tempRules;
				this.tempRulesLoaded = true;

				tempRules.forEach(function (tempRule) {
					CommunicationBus.publish(channelNames.VERIFY_CREATE_RULE, RuleSerializer.serialize(tempRule));
				});

				this.persistedTempRulesCount = tempRules.length;
			}
		}
function () {
			var tempRules = Storage.getRules(),
				loadingFromAdditionalRuleSets = this.model.getProperty("/loadingAdditionalRuleSets");

			if (tempRules && !loadingFromAdditionalRuleSets && !this.tempRulesLoaded) {
				this.tempRulesFromStorage = tempRules;
				this.tempRulesLoaded = true;

				tempRules.forEach(function (tempRule) {
					CommunicationBus.publish(channelNames.VERIFY_CREATE_RULE, RuleSerializer.serialize(tempRule));
				});

				this.persistedTempRulesCount = tempRules.length;
			}
		}
function ( ) { var tempRules = Storage . getRules ( ) , loadingFromAdditionalRuleSets = this . model . getProperty ( "/loadingAdditionalRuleSets" ) ; if ( tempRules && ! loadingFromAdditionalRuleSets && ! this . tempRulesLoaded ) { this . tempRulesFromStorage = tempRules ; this . tempRulesLoaded = true ; tempRules . forEach ( function ( tempRule ) { CommunicationBus . publish ( channelNames . VERIFY_CREATE_RULE , RuleSerializer . serialize ( tempRule ) ) ; } ) ; this . persistedTempRulesCount = tempRules . length ; } }
Loads temporary rules from the local storage
Loads temporary rules from the local storage
This function is called when the model is loaded