Просмотр исходного кода

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

Mike Hamburg 15 лет назад
Родитель
Сommit
ac441e835e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/random.js

+ 1 - 1
core/random.js

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