[Pkg-javascript-commits] [ltx] 351/469: add new ltx-browser.js build
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:25 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 8c6ee0bae2802c3bd8248df3c916714de629686b
Author: ▟ ▖▟ ▖ <dodo.the.last at gmail.com>
Date: Thu Sep 18 12:24:00 2014 +0200
add new ltx-browser.js build
---
ltx-browser.js | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/ltx-browser.js b/ltx-browser.js
index 567103a..ecd2fa2 100644
--- a/ltx-browser.js
+++ b/ltx-browser.js
@@ -403,6 +403,16 @@ Element.prototype.toString = function() {
return s
}
+Element.prototype.toJSON = function() {
+ return {
+ name: this.name,
+ attrs: this.attrs,
+ children: this.children.map(function(child) {
+ return child && child.toJSON ? child.toJSON() : child;
+ })
+ }
+}
+
Element.prototype._addChildren = function(writer) {
writer('>')
for (var i = 0; i < this.children.length; i++) {
@@ -852,10 +862,8 @@ EventEmitter.prototype.emit = function(type) {
er = arguments[1];
if (er instanceof Error) {
throw er; // Unhandled 'error' event
- } else {
- throw TypeError('Uncaught, unspecified "error" event.');
}
- return false;
+ throw TypeError('Uncaught, unspecified "error" event.');
}
}
@@ -940,7 +948,10 @@ EventEmitter.prototype.addListener = function(type, listener) {
'leak detected. %d listeners added. ' +
'Use emitter.setMaxListeners() to increase limit.',
this._events[type].length);
- console.trace();
+ if (typeof console.trace === 'function') {
+ // not supported in IE 10
+ console.trace();
+ }
}
}
@@ -1167,8 +1178,11 @@ process.argv = [];
function noop() {}
process.on = noop;
+process.addListener = noop;
process.once = noop;
process.off = noop;
+process.removeListener = noop;
+process.removeAllListeners = noop;
process.emit = noop;
process.binding = function (name) {
@@ -1777,5 +1791,5 @@ function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
-}).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
+}).call(this,require("JkpR2F"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
+},{"./support/isBuffer":10,"JkpR2F":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