Parcourir la source

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

Mike Hamburg il y a 15 ans
Parent
commit
ac441e835e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
       }
     }