Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare plugins #148

Merged
merged 10 commits into from
Feb 5, 2017
Merged

Prepare plugins #148

merged 10 commits into from
Feb 5, 2017

Conversation

khaydarov
Copy link
Member

Plugins preparation should be executed asynchronically

codex.js Outdated
inputs : []
jsonOutput : [],
blocks : [],
ArrayOfCachedData : [],
Copy link
Member

Choose a reason for hiding this comment

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

почему первое слово с большой буквы?

modules/draw.js Outdated
@@ -311,6 +311,16 @@ module.exports = (function (draw) {

};

draw.unavailableBlock = function ( data ) {
Copy link
Member

Choose a reason for hiding this comment

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

в комментах нужно описать что за data. А лучше вынести ее из этой функции, тк dataset относится к логике, а тут только рисование

var block = editor.tools[pluginName].render(blockData.data);
if ( editor.tools[pluginName].available === false ) {

block = editor.draw.unavailableBlock(ArrayOfCachedData.length);
Copy link
Member

Choose a reason for hiding this comment

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

ArrayOfCachedData.length — это что означает?

Copy link
Member

Choose a reason for hiding this comment

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

уверен, что надежно так обращаться?

var block = editor.tools[pluginName].render(blockData.data);
if ( editor.tools[pluginName].available === false ) {

block = editor.draw.unavailableBlock(ArrayOfCachedData.length);
Copy link
Member

Choose a reason for hiding this comment

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

уверен, что надежно так обращаться?

@neSpecc neSpecc merged commit f5314df into master Feb 5, 2017
@neSpecc neSpecc deleted the prepare-plugins branch February 5, 2017 14:50
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