Skip to content

Commit a8f5d68

Browse files
committed
fix unbind (courtesy of rpl)
1 parent 65efeda commit a8f5d68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

postmessage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@
146146
}
147147
else {
148148
// unbind all listeners of all type
149-
l = {};
149+
for (var i in l) {
150+
delete l[i];
151+
}
150152
}
151153
}
152154
},

0 commit comments

Comments
 (0)