[Pkg-javascript-commits] [ltx] 338/469: Include latest browserified code

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:23 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 687ff5dd82612ea9acc885006120940808acc379
Author: Lloyd Watkin <lloyd at evilprofessor.co.uk>
Date:   Fri Apr 4 09:08:56 2014 +0100

    Include latest browserified code
---
 ltx-browser.js | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/ltx-browser.js b/ltx-browser.js
index 4858b56..567103a 100644
--- a/ltx-browser.js
+++ b/ltx-browser.js
@@ -277,6 +277,17 @@ Element.prototype.getChildText = function(name, xmlns) {
     return child ? child.getText() : null
 }
 
+/**
+ * Return all direct descendents that are Elements.
+ * This differs from `getChildren` in that it will exclude text nodes,
+ * processing instructions, etc.
+ */
+Element.prototype.getChildElements = function() {
+    return this.getChildrenByFilter(function(child) {
+        return child instanceof Element
+    })
+}
+
 /*** Builder ***/
 
 /** returns uppermost parent */
@@ -1153,6 +1164,13 @@ process.browser = true;
 process.env = {};
 process.argv = [];
 
+function noop() {}
+
+process.on = noop;
+process.once = noop;
+process.off = noop;
+process.emit = noop;
+
 process.binding = function (name) {
     throw new Error('process.binding is not supported');
 }
@@ -1759,5 +1777,5 @@ function hasOwnProperty(obj, prop) {
   return Object.prototype.hasOwnProperty.call(obj, prop);
 }
 
-}).call(this,require("/Users/lloyd/Dropbox/code/xmpp-ftw/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{"./support/isBuffer":10,"/Users/lloyd/Dropbox/code/xmpp-ftw/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":9,"inherits":8}]},{},[3])
\ No newline at end of file
+}).call(this,require("/home/lloyd/Dropbox/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
+},{"./support/isBuffer":10,"/home/lloyd/Dropbox/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":9,"inherits":8}]},{},[3])
\ No newline at end of file

-- 
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