Author: orudyy
Date: Tue Jan 27 16:04:31 2015
New Revision: 1655068

URL: http://svn.apache.org/r1655068
Log:
QPID-6337: Fix javascript error occuring in IE8 after dojo upgrade

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

Modified: 
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/metadata.js
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/metadata.js?rev=1655068&r1=1655067&r2=1655068&view=diff
==============================================================================
--- 
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/metadata.js
 (original)
+++ 
qpid/trunk/qpid/java/broker-plugins/management-http/src/main/java/resources/js/qpid/common/metadata.js
 Tue Jan 27 16:04:31 2015
@@ -29,7 +29,7 @@ define(["dojo/_base/xhr",
      _init: function ()
      {
        var that = this;
-       xhr.get({sync: true, handleAs: "json", url: "service/metadata", load: 
function(metadata){that._onMetadata(metadata)}});
+       xhr.get({sync: true, handleAs: "json", url: "service/metadata", load: 
function(data){that._onMetadata(data)}});
      },
      _onMetadata: function (metadata)
      {
@@ -68,7 +68,8 @@ define(["dojo/_base/xhr",
      },
      implementsManagedInterface: function (category, type, 
managedInterfaceName)
      {
-        return this.getMetaData(category, 
type).managedInterfaces.indexOf(managedInterfaceName) >= 0;
+        var managedInterfaces = this.getMetaData(category, 
type).managedInterfaces;
+        return array.indexOf(managedInterfaces, managedInterfaceName) >= 0 ;
      },
      validChildTypes: function (category, type, childCategory)
      {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to