瀏覽代碼

fix an issue reported by ctemplin that prevents event handlers from being removed

Mike Hamburg 15 年之前
父節點
當前提交
84fe48947d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/random.js

+ 1 - 1
core/random.js

@@ -221,7 +221,7 @@ sjcl.random = {
      */
      */
   
   
     for (j in cbs) {
     for (j in cbs) {
-     if (cbs.hasOwnProperty[j] && cbs[j] === cb) {
+	if (cbs.hasOwnProperty(j) && cbs[j] === cb) {
         jsTemp.push(j);
         jsTemp.push(j);
       }
       }
     }
     }