Skip to content

Commit

Permalink
Fix for undefined this in removeEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
davej committed Jan 27, 2016
1 parent 3ba6cd0 commit 21e4f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bliss._.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if (self.EventTarget && "addEventListener" in EventTarget.prototype) {
};

EventTarget.prototype.removeEventListener = function(type, callback, capture) {
if (this[_] && callback) {
if (this && this[_] && callback) {
var listeners = this[_].bliss.listeners = this[_].bliss.listeners || {};

if (listeners[type]) {
Expand Down

0 comments on commit 21e4f27

Please sign in to comment.