Refactoring (#144)

* codex -> codex.editor

* ESlint code style

* Code lint

* fix inline module 'this' call

* fixed toolbox leaf

* removed empty spaces

* caret module code improved
This commit is contained in:
Peter Savchenko 2017-02-01 20:25:59 +03:00 committed by GitHub
commit e71a12401a
37 changed files with 1433 additions and 6382 deletions

View file

@ -12,9 +12,9 @@ var code = (function(code) {
* @param {object} JSON with block data
* @return {Element} element to append
*/
code.make = function (data) {
var make_ = function (data) {
var tag = codex.draw.node('CODE', [baseClass], {});
var tag = codex.editor.draw.node('CODE', [baseClass], {});
if (data && data.text) {
tag.innerHTML = data.text;
@ -30,7 +30,7 @@ var code = (function(code) {
*/
code.render = function (data) {
return codeTool.make(data);
return make_(data);
};
/**