From 5e68364edeb81275e50331448d454300d44cc60f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 8 Aug 2017 17:44:01 +0200 Subject: [PATCH] Regenerated dist files. --- dist/converse-mobile.js | 19 ++++++++++++------- dist/converse-no-dependencies.js | 16 +++++++++------- dist/inverse.js | 19 ++++++++++++------- 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/dist/converse-mobile.js b/dist/converse-mobile.js index 1ca8db8a1..bbfbc349d 100644 --- a/dist/converse-mobile.js +++ b/dist/converse-mobile.js @@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage; }; this.giveFeedback = function (subject, klass, message) { - var els = document.querySelectorAll('.conn-feedback'); - _.forEach(els, function (el) { + _.forEach(document.querySelectorAll('.conn-feedback'), function (el) { el.classList.add('conn-feedback'); el.textContent = subject; if (klass) { @@ -55186,7 +55185,7 @@ return __p initialize: function initialize() { this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_category', this.render, this); - this.setScrollPosition = _.debounce(this.setScrollPosition, 50); + this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this); }, render: function render() { var _this = this; @@ -55199,8 +55198,8 @@ return __p 'shouldBeHidden': this.shouldBeHidden })); this.el.innerHTML = emojis_html; - this.el.querySelectorAll('.emoji-picker').forEach(function (el) { - el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); + _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) { + el.addEventListener('scroll', _this.setScrollPosition); }); this.restoreScrollPosition(); return this; @@ -55227,7 +55226,7 @@ return __p current_picker[0].scrollTop = this.model.get('scroll_position'); } }, - setScrollPosition: function setScrollPosition(ev, position) { + setScrollPosition: function setScrollPosition(ev) { this.model.save('scroll_position', ev.target.scrollTop); }, chooseSkinTone: function chooseSkinTone(ev) { @@ -58827,7 +58826,10 @@ Strophe.addConnectionPlugin('disco', }, openChatRoom: function openChatRoom(ev) { ev.preventDefault(); - _converse.openChatRoom(this.parseRoomDataFromEvent(ev)); + var data = this.parseRoomDataFromEvent(ev); + if (!_.isUndefined(data)) { + _converse.openChatRoom(data); + } }, setDomain: function setDomain(ev) { this.model.save({ muc_domain: ev.target.value }); @@ -71177,6 +71179,9 @@ return __p * user. They should always be shown. */ var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments); + if (_.isUndefined(result)) { + return; + } result.hidden = false; return result; } diff --git a/dist/converse-no-dependencies.js b/dist/converse-no-dependencies.js index 17e262c62..92a898e61 100644 --- a/dist/converse-no-dependencies.js +++ b/dist/converse-no-dependencies.js @@ -8169,8 +8169,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; this.giveFeedback = function (subject, klass, message) { - var els = document.querySelectorAll('.conn-feedback'); - _.forEach(els, function (el) { + _.forEach(document.querySelectorAll('.conn-feedback'), function (el) { el.classList.add('conn-feedback'); el.textContent = subject; if (klass) { @@ -12480,7 +12479,7 @@ return __p initialize: function initialize() { this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_category', this.render, this); - this.setScrollPosition = _.debounce(this.setScrollPosition, 50); + this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this); }, render: function render() { var _this = this; @@ -12493,8 +12492,8 @@ return __p 'shouldBeHidden': this.shouldBeHidden })); this.el.innerHTML = emojis_html; - this.el.querySelectorAll('.emoji-picker').forEach(function (el) { - el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); + _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) { + el.addEventListener('scroll', _this.setScrollPosition); }); this.restoreScrollPosition(); return this; @@ -12521,7 +12520,7 @@ return __p current_picker[0].scrollTop = this.model.get('scroll_position'); } }, - setScrollPosition: function setScrollPosition(ev, position) { + setScrollPosition: function setScrollPosition(ev) { this.model.save('scroll_position', ev.target.scrollTop); }, chooseSkinTone: function chooseSkinTone(ev) { @@ -18593,7 +18592,10 @@ return __p }, openChatRoom: function openChatRoom(ev) { ev.preventDefault(); - _converse.openChatRoom(this.parseRoomDataFromEvent(ev)); + var data = this.parseRoomDataFromEvent(ev); + if (!_.isUndefined(data)) { + _converse.openChatRoom(data); + } }, setDomain: function setDomain(ev) { this.model.save({ muc_domain: ev.target.value }); diff --git a/dist/inverse.js b/dist/inverse.js index 373b6dd4a..1a69a1de4 100644 --- a/dist/inverse.js +++ b/dist/inverse.js @@ -49781,8 +49781,7 @@ return Backbone.BrowserStorage; }; this.giveFeedback = function (subject, klass, message) { - var els = document.querySelectorAll('.conn-feedback'); - _.forEach(els, function (el) { + _.forEach(document.querySelectorAll('.conn-feedback'), function (el) { el.classList.add('conn-feedback'); el.textContent = subject; if (klass) { @@ -54092,7 +54091,7 @@ return __p initialize: function initialize() { this.model.on('change:current_skintone', this.render, this); this.model.on('change:current_category', this.render, this); - this.setScrollPosition = _.debounce(this.setScrollPosition, 50); + this.setScrollPosition = _.debounce(this.setScrollPosition, 50).bind(this); }, render: function render() { var _this = this; @@ -54105,8 +54104,8 @@ return __p 'shouldBeHidden': this.shouldBeHidden })); this.el.innerHTML = emojis_html; - this.el.querySelectorAll('.emoji-picker').forEach(function (el) { - el.addEventListener('scroll', _this.setScrollPosition.bind(_this)); + _.forEach(this.el.querySelectorAll('.emoji-picker'), function (el) { + el.addEventListener('scroll', _this.setScrollPosition); }); this.restoreScrollPosition(); return this; @@ -54133,7 +54132,7 @@ return __p current_picker[0].scrollTop = this.model.get('scroll_position'); } }, - setScrollPosition: function setScrollPosition(ev, position) { + setScrollPosition: function setScrollPosition(ev) { this.model.save('scroll_position', ev.target.scrollTop); }, chooseSkinTone: function chooseSkinTone(ev) { @@ -60985,7 +60984,10 @@ Strophe.addConnectionPlugin('disco', }, openChatRoom: function openChatRoom(ev) { ev.preventDefault(); - _converse.openChatRoom(this.parseRoomDataFromEvent(ev)); + var data = this.parseRoomDataFromEvent(ev); + if (!_.isUndefined(data)) { + _converse.openChatRoom(data); + } }, setDomain: function setDomain(ev) { this.model.save({ muc_domain: ev.target.value }); @@ -71694,6 +71696,9 @@ return __p * user. They should always be shown. */ var result = this.__super__.parseRoomDataFromEvent.apply(this, arguments); + if (_.isUndefined(result)) { + return; + } result.hidden = false; return result; }