Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Blacklist keyLocation from all Events
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Jan 10, 2014
1 parent de3c061 commit 7687013
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wrappers/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,12 @@
};

var OriginalEvent = window.Event;
OriginalEvent.prototype.polymerBlackList_ = {returnValue: true};
OriginalEvent.prototype.polymerBlackList_ = {
returnValue: true,
// TODO(arv): keyLocation is part of KeyboardEvent but Firefox does not
// support constructable KeyboardEvent so we keep it here for now.
keyLocation: true
};

/**
* Creates a new Event wrapper or wraps an existin native Event object.
Expand Down

0 comments on commit 7687013

Please sign in to comment.