refactoring: common things in constructor, dom construction in a separate function
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / wlxmlManagers.js
index 1078218..66b2ea0 100644 (file)
@@ -41,8 +41,7 @@ var DocumentElementWrapper = function(documentElement) {
         eventBus.trigger.apply(eventBus, arguments);
     };
 
-    this.node = documentElement.data('wlxmlNode');
-
+    this.node = documentElement.wlxmlNode;
 };
 
 var getDisplayStyle = function(tag, klass) {
@@ -55,6 +54,9 @@ var getDisplayStyle = function(tag, klass) {
     if(klass && klass.substr(0, 4) === 'item') {
         return null;
     }
+    if(klass === 'gap') {
+        return 'inline';
+    }
     return 'block';
 };