From 84fe48947d2c0cc81e7c91746cb85e78bd6038d5 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Sun, 7 Nov 2010 14:59:40 -0800 Subject: [PATCH] fix an issue reported by ctemplin that prevents event handlers from being removed --- core/random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/random.js b/core/random.js index c91cb325..a32eaa3a 100644 --- a/core/random.js +++ b/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); } }