Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Don't throw error when trying to unbind attribute that is not bound. #210

Merged
merged 2 commits into from
Nov 27, 2017

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Nov 27, 2017

Suggested merge commit message (convention)

Enhancement: Don't throw error when trying to unbind attribute that is not bound. Closes ckeditor/ckeditor5#4865.


Additional information

  • Small fix I suppose.


observable.bind( 'foo' ).to( car, 'color' );

observable.unbind( 'bar' );
Copy link
Member

Choose a reason for hiding this comment

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

I'd use expect( () => {} ).to.not.throw(); here to be consistent with other tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also reword the test name.

@oleq oleq merged commit 848a818 into master Nov 27, 2017
@oleq oleq deleted the t/5 branch November 27, 2017 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Observable#unbind: unbinding attribute which is not bound throws ambiguous error
2 participants