Преглед изворни кода

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

Mike Hamburg пре 15 година
родитељ
комит
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) {
     for (j in cbs) {
-     if (cbs.hasOwnProperty[j] && cbs[j] === cb) {
+	if (cbs.hasOwnProperty(j) && cbs[j] === cb) {
         jsTemp.push(j);
         jsTemp.push(j);
       }
       }
     }
     }