1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

Use complete RSVP instead of ES6Promise

This commit is contained in:
Dominik Schmidt
2015-03-03 22:09:39 +01:00
parent c12aea4b35
commit 16df4d958e
6 changed files with 16 additions and 25 deletions

View File

@@ -39,6 +39,11 @@ if ((typeof Tomahawk === "undefined") || (Tomahawk === null)) {
Tomahawk.apiVersion = "0.2.2";
// install RSVP.Promise as global Promise
if(window.Promise === undefined) {
window.Promise = window.RSVP.Promise;
}
/**
* Compares versions strings
* (version1 < version2) == -1