Skip to content

Commit 56934e3

Browse files
committed
fix for IE11 problem
ELEMENT.uniqueID でのエレメントID取得を IE 以外のブラウザで対応させるための部分で、IE 11 の判定ができてなくて、JavaScript のスタックエラーになり、他の JavaScript が正常に動作しないことがある問題の修正。
1 parent 5b41909 commit 56934e3

File tree

1 file changed

+1
-2
lines changed
  • xoops_trust_path/modules/xpwiki/skin/js

1 file changed

+1
-2
lines changed

xoops_trust_path/modules/xpwiki/skin/js/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// for .uniqueID
2-
32
(function() {
4-
if (!Prototype.Browser.IE && !!window.HTMLElement) {
3+
if (!document.uniqueID && !!window.HTMLElement) {
54
var nextUniqueID = 1;
65
window.HTMLElement.prototype.__defineGetter__('uniqueID', function() {
76
var uniqueID = 'id' + nextUniqueID++;

0 commit comments

Comments
 (0)