From fa56ef23c03c45821e4e8d5b61457db591a98269 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 Jan 2016 17:59:19 +1030 Subject: [PATCH] Update bower dependencies, fix redraw regression - In Mithril, `finally` has been removed from promise objects as it is not part of the ES spec. See https://gist.github.com/jish/e9bcd75e391a2b21206b for info on the substitute. - Fix a regression introduced in a506b7c which broke some redraws --- framework/core/js/admin/dist/app.js | 140 ++++++++-------- .../js/admin/src/components/BasicsPage.js | 3 +- framework/core/js/forum/dist/app.js | 150 +++++++++--------- .../forum/src/components/ChangeEmailModal.js | 3 +- .../src/components/ForgotPasswordModal.js | 3 +- .../forum/src/components/NotificationList.js | 3 +- .../core/js/forum/src/components/UserBio.js | 10 +- .../core/js/forum/src/utils/PostControls.js | 15 +- framework/core/js/lib/helpers/listItems.js | 4 + 9 files changed, 169 insertions(+), 162 deletions(-) diff --git a/framework/core/js/admin/dist/app.js b/framework/core/js/admin/dist/app.js index 3a6e9db20..bee498d02 100644 --- a/framework/core/js/admin/dist/app.js +++ b/framework/core/js/admin/dist/app.js @@ -609,7 +609,7 @@ exports.System = System; ; var m = (function app(window, undefined) { "use strict"; - var VERSION = "v0.2.1"; + var VERSION = "v0.2.2-rc.1"; function isFunction(object) { return typeof object === "function"; } @@ -912,22 +912,19 @@ var m = (function app(window, undefined) { var nodes = cached.nodes; if (!editable || editable !== $document.activeElement) { if (data.$trusted) { - clear(nodes, cached); - nodes = injectHTML(parentElement, index, data); - } - //corner case: replacing the nodeValue of a text node that is a child of a textarea/contenteditable doesn't work - //we need to update the value property of the parent textarea or the innerHTML of the contenteditable element instead - else if (parentTag === "textarea") { - parentElement.value = data; - } - else if (editable) { - editable.innerHTML = data; - } - else { - //was a trusted string - if (nodes[0].nodeType === 1 || nodes.length > 1) { - clear(cached.nodes, cached); - nodes = [$document.createTextNode(data)]; + clear(nodes, cached) + nodes = injectHTML(parentElement, index, data) + } else if (parentTag === "textarea") { + //