diff forms.js @ 56:99bd1d1ac071

Migration to node-xmpp, done!
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 10 Aug 2011 15:11:22 -0700
parents 023f767662d3
children addbf6bbfaa8
line wrap: on
line diff
--- a/forms.js
+++ b/forms.js
@@ -19,7 +19,7 @@
 
 'use strict';
 
-var xmpp = require('xmpp')
+var Element = require('ltx').Element;
 var service_configuration = require('./configuration').service_configuration;
 
 var parseBoolean = function(b) {
@@ -29,7 +29,7 @@ var parseBoolean = function(b) {
 }
 
 exports.build = function(type, desc, content, labels, title, instructions) {
-	var x = xmpp.stanza('x', {xmlns: 'jabber:x:data', type: type});
+	var x = new Element('x', {xmlns: 'jabber:x:data', type: type});
 
 	if (typeof desc == 'string')
 		desc = service_configuration[desc];