Commit d928487c authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Ignora cambios de propiedad al usar el mismo valor

En lugar de emitir un evento, se muestra un warning.
parent 265fd2fc
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -720,12 +720,18 @@ define([
			var propNames = [];

			for (var prop in req) {
				var value = req[prop];
				var value = req[prop],
					oldValue = this[prop];

				if (this._checkPropIsShareable(prop)) {
					if (value === oldValue) {
						console.warn('Tried to update property "%s" using same value "%s" at module "%s"', prop, value,
							this.getChannel());

							continue;
					}
					var evtKey = this._createEvent(prop + this.propSetSuffix),
						methodName = '_on' + Utilities.capitalize(prop) + 'PropSet';
						oldValue = this[prop],
						methodName = '_on' + Utilities.capitalize(prop) + 'PropSet',
						changeObj = {
							prop: prop,
							oldValue: oldValue,