Skip to content
Browse files

IE8 does not support hasOwnProperty on host object

We need to use Object.prototype.hasOwnProperty since IE8 does not
support hasOwnProperty for host objects, and events are host objects.
This is only a problem when debugging events, but better not to blow up
when you don't want to.
  • Loading branch information...
1 parent 21d5a97 commit 60dc5a7ad2f4f1844b02a5babac7816a6d98e451 @bluesmoon committed Jan 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 boomerang.js
View
2 boomerang.js
@@ -137,7 +137,7 @@ boomr = {
separator="\n\t";
for(k in o) {
- if(o.hasOwnProperty(k)) {
+ if(Object.prototype.hasOwnProperty.call(o, k)) {
value.push(encodeURIComponent(k) + '=' + encodeURIComponent(o[k]));
}
}

0 comments on commit 60dc5a7

Please sign in to comment.
Something went wrong with that request. Please try again.