exception check (for IE)
This commit is contained in:
parent
315757ff8e
commit
980fc6a5c6
@ -546,7 +546,7 @@ function DatasourceSubscription(datasourceSubscription, telemetryWebsocketServic
|
||||
var keyData = sourceData[keyName];
|
||||
var key = keyName + '_' + type;
|
||||
var dataKeyList = dataKeys[key];
|
||||
for (var keyIndex = 0; keyIndex < dataKeyList.length; keyIndex++) {
|
||||
for (var keyIndex = 0; dataKeyList && keyIndex < dataKeyList.length; keyIndex++) {
|
||||
var datasourceKey = key + "_" + keyIndex;
|
||||
if (datasourceData[datasourceKey].data) {
|
||||
var dataKey = dataKeyList[keyIndex];
|
||||
@ -595,6 +595,8 @@ function DatasourceSubscription(datasourceSubscription, telemetryWebsocketServic
|
||||
datasourceData[datasourceKey].data = data;
|
||||
for (var i2 in listeners) {
|
||||
var listener = listeners[i2];
|
||||
if (angular.isFunction(listener))
|
||||
continue;
|
||||
listener.dataUpdated(datasourceData[datasourceKey],
|
||||
listener.datasourceIndex,
|
||||
dataKey.index, apply);
|
||||
@ -605,4 +607,3 @@ function DatasourceSubscription(datasourceSubscription, telemetryWebsocketServic
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -158,6 +158,8 @@ function UserService($http, $q, $rootScope, adminService, dashboardService, toas
|
||||
|
||||
function resolveRefreshTokenQueue(data) {
|
||||
for (var q in refreshTokenQueue) {
|
||||
if (isNaN(q))
|
||||
continue;
|
||||
refreshTokenQueue[q].resolve(data);
|
||||
}
|
||||
refreshTokenQueue = [];
|
||||
@ -165,6 +167,8 @@ function UserService($http, $q, $rootScope, adminService, dashboardService, toas
|
||||
|
||||
function rejectRefreshTokenQueue(message) {
|
||||
for (var q in refreshTokenQueue) {
|
||||
if (isNaN(q))
|
||||
continue;
|
||||
refreshTokenQueue[q].reject(message);
|
||||
}
|
||||
refreshTokenQueue = [];
|
||||
|
||||
@ -483,6 +483,8 @@ function WidgetService($rootScope, $http, $q, $filter, $ocLazyLoad, $window, typ
|
||||
var fetchQueue = widgetsInfoFetchQueue[key];
|
||||
if (fetchQueue) {
|
||||
for (var q in fetchQueue) {
|
||||
if (isNaN(q))
|
||||
continue;
|
||||
fetchQueue[q].resolve(widgetInfo);
|
||||
}
|
||||
delete widgetsInfoFetchQueue[key];
|
||||
|
||||
@ -807,6 +807,8 @@ export default function WidgetController($scope, $timeout, $window, $element, $q
|
||||
var index = 0;
|
||||
for (var i in widgetContext.datasources) {
|
||||
var datasource = widgetContext.datasources[i];
|
||||
if (angular.isFunction(datasource))
|
||||
continue;
|
||||
var deviceId = null;
|
||||
if (datasource.type === types.datasourceType.device && datasource.deviceAliasId) {
|
||||
if (aliasesInfo.deviceAliases[datasource.deviceAliasId]) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user