[Pkg-javascript-commits] [ltx] 09/469: xmpp.js: export XML.Element directly
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:00:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 7e5520b051ef0bee2804712fd91e5a43ec536a8d
Author: Astro <astro at spaceboyz.net>
Date: Thu May 27 01:34:35 2010 +0200
xmpp.js: export XML.Element directly
---
examples/send_message.js | 6 +++---
lib/xmpp.js | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/examples/send_message.js b/examples/send_message.js
index fb21e17..7053b77 100644
--- a/examples/send_message.js
+++ b/examples/send_message.js
@@ -14,9 +14,9 @@ cl.addListener('online',
function() {
argv.slice(5).forEach(
function(to) {
- cl.send(new xmpp.XML.Element('message',
- { to: to,
- type: 'chat'}).
+ cl.send(new xmpp.Element('message',
+ { to: to,
+ type: 'chat'}).
c('body').
t(argv[4]));
});
diff --git a/lib/xmpp.js b/lib/xmpp.js
index 318d301..759d9a3 100644
--- a/lib/xmpp.js
+++ b/lib/xmpp.js
@@ -5,3 +5,4 @@ var XML = require('./xmpp/xml');
exports.Client = Client;
exports.JID = JID;
exports.XML = XML;
+exports.Element = XML.Element;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list