From 16df4d958e75661a4bd034c270403035137e29fc Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Tue, 3 Mar 2015 22:09:39 +0100 Subject: [PATCH] Use complete RSVP instead of ES6Promise --- data/js/es6-promise-2.0.0.min.js | 18 ------------------ data/js/rsvp-latest.min.js | 9 +++++++++ data/js/tomahawk-infosystem.js | 5 ----- data/js/tomahawk.js | 5 +++++ resources.qrc | 2 +- src/libtomahawk/resolvers/JSResolver.cpp | 2 +- 6 files changed, 16 insertions(+), 25 deletions(-) delete mode 100644 data/js/es6-promise-2.0.0.min.js create mode 100644 data/js/rsvp-latest.min.js diff --git a/data/js/es6-promise-2.0.0.min.js b/data/js/es6-promise-2.0.0.min.js deleted file mode 100644 index 59bc74560..000000000 --- a/data/js/es6-promise-2.0.0.min.js +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE - * @version 2.0.0 - */ - -(function(){function r(a,b){n[l]=a;n[l+1]=b;l+=2;2===l&&A()}function s(a){return"function"===typeof a}function F(){return function(){process.nextTick(t)}}function G(){var a=0,b=new B(t),c=document.createTextNode("");b.observe(c,{characterData:!0});return function(){c.data=a=++a%2}}function H(){var a=new MessageChannel;a.port1.onmessage=t;return function(){a.port2.postMessage(0)}}function I(){return function(){setTimeout(t,1)}}function t(){for(var a=0;a1){throw new Error("Second argument not supported")}if(typeof o!=="object"){throw new TypeError("Argument must be an object")}lib$rsvp$utils$$F.prototype=o;return new lib$rsvp$utils$$F};function lib$rsvp$events$$indexOf(callbacks,callback){for(var i=0,l=callbacks.length;idata/sql/dbmigrate-28_to_29.sql data/js/tomahawk.js data/js/tomahawk-infosystem.js - data/js/es6-promise-2.0.0.min.js + data/js/rsvp-latest.min.js data/images/drop-all-songs.svg data/images/drop-local-songs.svg data/images/drop-top-songs.svg diff --git a/src/libtomahawk/resolvers/JSResolver.cpp b/src/libtomahawk/resolvers/JSResolver.cpp index e93043070..816580621 100644 --- a/src/libtomahawk/resolvers/JSResolver.cpp +++ b/src/libtomahawk/resolvers/JSResolver.cpp @@ -215,7 +215,7 @@ JSResolver::init() d->scriptAccount->addToJavaScriptWindowObject( "Tomahawk", d->resolverHelper ); // load es6-promises shim - d->scriptAccount->loadScript( RESPATH "js/es6-promise-2.0.0.min.js" ); + d->scriptAccount->loadScript( RESPATH "js/rsvp-latest.min.js" ); // Load CrytoJS core