From: Aleksander Ɓukasz Date: Thu, 3 Apr 2014 08:39:25 +0000 (+0200) Subject: removing unused code (SpanElement) X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/1c4a242bf56575e265b38176aa1a71cc9d942e8f?ds=sidebyside;hp=0aa084a086d61520e1e8525bec2ac5d0290c7534 removing unused code (SpanElement) --- diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index 7325938..ef3a1ee 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -265,35 +265,11 @@ $.extend(DocumentTextElement.prototype, { }); -var SpanElement = function() { - DocumentNodeElement.apply(this, Array.prototype.slice.call(arguments, 0)); -}; -SpanElement.prototype = $.extend(Object.create(DocumentNodeElement.prototype), { - defaultDisplayStyle: 'inline', - init: function() { - if(this.containsBlock()) { - this.displayAsBlock(); - } else { - this.displayInline(); - } - }, - refresh: function() { - this.init(); - } -}); - -var elements = { - span: SpanElement -}; - return { DocumentElement: DocumentElement, DocumentNodeElement: DocumentNodeElement, - DocumentTextElement: DocumentTextElement, //, - factoryForTag: function(tagName) { - return elements[tagName] || DocumentNodeElement; - } + DocumentTextElement: DocumentTextElement }; }); \ No newline at end of file