Commit 46993b26 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Omite variables innecesarias en redmicConfig

parent 7d035c53
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -3,9 +3,6 @@ define([], function() {
	//		Configuraciones y valores globales.

	var retObj = {
		'numMaxView': 10,
		'apiVersion': 1,
		'pathSeparator': '/',
		'siteKeyReCaptcha': '6LfA6_0SAAAAACT3i8poH1NqztZCtIW1OahT0cXs',
		'siteKeyForDebugReCaptcha': '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI',
		'googleAnalyticsId': 'G-J753HC86F0'
@@ -567,7 +564,8 @@ define([], function() {
			return true;
		}

		var pathSplitted = path.split(this.pathSeparator),
		var pathSeparator = '/',
			pathSplitted = path.split(pathSeparator),
			ancestorPath = pathSplitted[0];

		return this.outerPaths.indexOf(ancestorPath) !== -1;
+6 −1
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@ define([
		//		Mantiene varios módulos precargados y va limpiando los más antiguos al
		//		alcanzar el límite máximo de instancias.

		//	maxInstances: Integer
		//		Número máximo de módulos de vistas instanciados, para destruir los más antiguos cuando se alcance el
		//		límite establecido.
		//	moduleStore: Object
		//		Almacén con los módulos en los que el usuario tiene permisos
		//	parameterRegExp: RegExp
@@ -52,6 +55,8 @@ define([
				// mediator params
				ownChannel: "moduleStore",

				maxInstances: 10,

				viewSeparator: "/",

				parameterRegExp: "([\-a-zA-Z0-9_\+=]+)",
@@ -376,7 +381,7 @@ define([
			});

			// Si no hemos llegado al límite, no limpiamos
			if (instantiatedModules.length <= redmicConfig.numMaxView) {
			if (instantiatedModules.length <= this.maxInstances) {
				return;
			}