From 1c4a242bf56575e265b38176aa1a71cc9d942e8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 3 Apr 2014 10:39:25 +0200 Subject: [PATCH] removing unused code (SpanElement) --- .../documentCanvas/canvas/documentElement.js | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) 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 -- 2.20.1