diff plugins/disco.js @ 80:50d36b093e3a

Lightstring.namespaces/NS has been renamed by Lightstring.ns.
author Sonny Piers <sonny.piers@gmail.com>
date Tue, 07 Feb 2012 18:42:09 +0100
parents 0b8e7ca19f83
children 7500bc048dbc
line wrap: on
line diff
--- a/plugins/disco.js
+++ b/plugins/disco.js
@@ -96,10 +96,10 @@
             var ns = child.namespaceURI;
             var name = child.localName;
 
-            if (ns === Lightstring.namespaces['disco#info'] && name === 'feature')
+            if (ns === Lightstring.ns['disco#info'] && name === 'feature')
               features.push(child.getAttributeNS(null, 'var'));
 
-            else if (ns === Lightstring.namespaces['disco#info'] && name === 'identity') {
+            else if (ns === Lightstring.ns['disco#info'] && name === 'identity') {
               var identity = {
                 category: child.getAttributeNS(null, 'category'),
                 type: child.getAttributeNS(null, 'type')
@@ -109,10 +109,9 @@
                 identity.name = name;
               identities.push(identity);
             }
-
-            else if (ns === Lightstring.namespaces['dataforms'] && name === 'x')
-              this.disco.parse(child); //TODO: check if that plugin is enabled.
-
+            else if (ns === Lightstring.ns['dataforms'] && name === 'x') {
+              var fields = this.dataforms.parse(child); //TODO: check if that plugin is enabled.
+            }
             else
               ; //TODO: emit a warning.
           }