You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2016/06/23 22:26:01 UTC

svn commit: r1750032 - /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js

Author: orudyy
Date: Thu Jun 23 22:26:01 2016
New Revision: 1750032

URL: http://svn.apache.org/viewvc?rev=1750032&view=rev
Log:
QPID-7308: Stop initializing array field in prototype as the same array is referenced from all instances

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js?rev=1750032&r1=1750031&r2=1750032&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js (original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/DropDownSelect.js Thu Jun 23 22:26:01 2016
@@ -125,8 +125,8 @@ define(["dojo/_base/declare",
                  */
                 _optionsGrid: null,
                 _descending: false,
-                _selectedItems: [],
-                _selectedIds: {},
+                _selectedItems: null,
+                _selectedIds: null,
 
                 postCreate: function ()
                 {
@@ -140,6 +140,8 @@ define(["dojo/_base/declare",
                 },
                 _postCreate: function ()
                 {
+                    this._selectedItems = [];
+                    this._selectedIds = {};
                     this.clearButton.on("click", lang.hitch(this, this._onClear));
                     this.search.on("change", lang.hitch(this, this._searchChanged));
                     this.search.on("keyUp", lang.hitch(this, function (evt)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org