From 39b16d0df07c8eb6454677329b75d7af725aa0ad Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sat, 31 May 2014 21:06:09 +0100 Subject: [PATCH] Use latest mithril, and remove local patch --- html/index.html | 2 +- html/js/melpa.js | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/html/index.html b/html/index.html index 3442e3e3..dcd7a027 100644 --- a/html/index.html +++ b/html/index.html @@ -43,7 +43,7 @@ - + diff --git a/html/js/melpa.js b/html/js/melpa.js index eeee6909..bced7ba5 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -11,31 +11,6 @@ // TODO Show recent github events on package pages where applicable // TODO Voting / starring - // Temporary fix pending https://github.com/lhorie/mithril.js/issues/101 upstream - m.sync = function(args) { - var method = "resolve" - function synchronizer(pos, resolved) { - return function(value) { - results[pos] = value - if (!resolved) method = "reject" - if (--outstanding == 0) { - deferred.promise(results) - deferred[method](results) - } - return value - } - } - - var deferred = m.deferred() - var outstanding = args.length - var results = new Array(outstanding) - for (var i = 0; i < args.length; i++) { - args[i].then(synchronizer(i, true), synchronizer(i, false)) - } - return deferred.promise - } - - ////////////////////////////////////////////////////////////////////////////// // Helpers //////////////////////////////////////////////////////////////////////////////