From 4dde10f731fe88325edc21e6318bf1d19bd72dc1 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 20 Jun 2013 22:37:51 -0700 Subject: [PATCH] updated messenger --- UI/JsLibraries/messenger.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/UI/JsLibraries/messenger.js b/UI/JsLibraries/messenger.js index 145688757..5d8108d05 100644 --- a/UI/JsLibraries/messenger.js +++ b/UI/JsLibraries/messenger.js @@ -1,4 +1,4 @@ -/*! messenger 1.3.2 */ +/*! messenger 1.3.3 */ /* * This file begins the output concatenated into messenger.js * @@ -993,13 +993,12 @@ window.Messenger.Events = (function() { } handlers = {}; _.each(['error', 'success'], function(type) { - var _ref3; - if ((_ref3 = opts[type]) != null ? _ref3._originalHandler : void 0) { - opts[type] = opts[type]._originalHandler; - } return handlers[type] = function() { - var data, defaultOpts, handlerResp, msgOpts, reason, resp, responseOpts, xhr, _base, _ref10, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9; + var data, defaultOpts, handlerResp, msgOpts, reason, resp, responseOpts, xhr, _base, _ref10, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9; resp = 1 <= arguments.length ? __slice.call(arguments, 0) : []; + if ((_ref3 = opts[type]) != null ? _ref3._originalHandler : void 0) { + opts[type] = opts[type]._originalHandler; + } _ref4 = _this._normalizeResponse.apply(_this, resp), reason = _ref4[0], data = _ref4[1], xhr = _ref4[2]; if (type === 'success' && !(msg.errorCount != null) && m_opts.showSuccessWithoutError === false) { m_opts['successMessage'] = null; @@ -1076,7 +1075,7 @@ window.Messenger.Events = (function() { } msg.update(msgOpts); if (responseOpts && msgOpts.message) { - $.globalMessenger(); + Messenger(); return msg.show(); } else { return msg.hide();