Przeglądaj źródła

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

Mike Hamburg 15 lat temu
rodzic
commit
ac441e835e
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
       }
     }