Skip to content

Conversation

tjoekbezoer
Copy link
Contributor

Bugfix for issue #1631 where removeEventListener would throw when no event listeners are registered on the object.

Bugfix for issue #1631 where removeEventListener would throw when no event listeners are registered on the object.
it('can handle calls to #removeEventListener on objects with no registered event listeners', function () {
var obj = new Klass();
obj.removeEventListener('test');
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No assertions here, so this test currently doesn't do anything... Add expect(...).not.to.throw or something like this.

@mourner
Copy link
Member

mourner commented Apr 29, 2013

You also have a failed build (due to whitespace error). Please run jake test and add corresponding corrections.

@tjoekbezoer
Copy link
Contributor Author

Yeah I noticed. I adressed both issues in second commit.

mourner added a commit that referenced this pull request Apr 29, 2013
Issue #1631: Fixed a bug on removeEventListener
@mourner mourner merged commit 8c7126a into Leaflet:master Apr 29, 2013
@mourner
Copy link
Member

mourner commented Apr 29, 2013

Looks good, thanks!

@tjoekbezoer
Copy link
Contributor Author

You're welcome. Keep up the great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants