소스 검색

HUE-1645 [core] Multi select chooser has Move and Clean sections

Fixed for..in loop
Enrico Berti 12 년 전
부모
커밋
90587081f4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/core/static/js/jquery.selector.js

+ 3 - 1
desktop/core/static/js/jquery.selector.js

@@ -60,7 +60,9 @@
     });
     var sortedKeys = [];
     for (var key in addressBook) {
-      sortedKeys.push(key);
+      if (addressBook.hasOwnProperty(key)) {
+        sortedKeys.push(key);
+      }
     }
     sortedKeys.sort();