editor: keep document properties on document instance, inform about changes via events
[fnpeditor.git] / src / wlxml / wlxml.js
index 5194c19..0505116 100644 (file)
@@ -72,6 +72,9 @@ $.extend(WLXMLElementNode.prototype, WLXMLDocumentNodeMethods, smartxml.ElementN
     getClass: function() {
         return this.getAttr('class') || '';
     },
     getClass: function() {
         return this.getAttr('class') || '';
     },
+    getClassHierarchy: function() {
+        return getClassLists(this.getClass());
+    },
     setClass: function(klass) {
         if(klass !== this.klass) {
             installObject(this, klass);
     setClass: function(klass) {
         if(klass !== this.klass) {
             installObject(this, klass);
@@ -384,7 +387,8 @@ return {
         return this.WLXMLDocumentFromXML(xml).root;
     },
 
         return this.WLXMLDocumentFromXML(xml).root;
     },
 
-    WLXMLDocument: WLXMLDocument
+    WLXMLDocument: WLXMLDocument,
+    getClassHierarchy: getClassLists
 };
 
 });
\ No newline at end of file
 };
 
 });
\ No newline at end of file