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

Moved consumable parameter to conversionApi parameter in downcast #1314

Merged
merged 2 commits into from
Feb 20, 2018

Conversation

scofalik
Copy link
Contributor

@scofalik scofalik commented Feb 20, 2018

Suggested merge commit message (convention)

Other: Moved consumable parameter to conversionApi parameter in downcast. Closes ckeditor/ckeditor5#4274. Closes ckeditor/ckeditor5#4254.

@scofalik
Copy link
Contributor Author

@coveralls
Copy link

coveralls commented Feb 20, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 0010863 on t/1294 into 809ea24 on master.

@@ -440,7 +451,19 @@ export default class DowncastDispatcher {

const name = data.item.name || '$text';

this.fire( type + ':' + name, data, consumable, this.conversionApi );
this.conversionApi.consumable = consumable;
Copy link

Choose a reason for hiding this comment

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

I will be cleaner if you do this when you create consumable and do not pass consumable to _testAndFire.

@pjasiun pjasiun merged commit 731db37 into master Feb 20, 2018
@pjasiun pjasiun deleted the t/1294 branch February 20, 2018 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants