Explorar o código

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

Mike Hamburg %!s(int64=15) %!d(string=hai) anos
pai
achega
ac441e835e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       }
     }