rsvpjs-rails 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rsvpjs/rails/version.rb +1 -1
- data/vendor/assets/javascripts/rsvp.js +38 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6641db1271e877add297e9d80c8172ab008a94d4
|
4
|
+
data.tar.gz: 5619ea51f4d0880118c317009059b138cd6f3b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d6278c4d9d9a2bf30976de1da48c1af920a299aeadd6b29cc3314a7499dbbd66c95a653693bb246791eda74f7ebc5ef0721269278bb17dfe2524f25cb87a3a
|
7
|
+
data.tar.gz: 57e454016d04b39a279365369d8a558abe6005a32cc895c1719be32ade05d79ff68138d336deb4bb969e544f6d40b805a2456050b9fb69284783be341084b5f2
|
data/README.md
CHANGED
data/lib/rsvpjs/rails/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors
|
4
4
|
* @license Licensed under MIT license
|
5
5
|
* See https://raw.githubusercontent.com/tildeio/rsvp.js/master/LICENSE
|
6
|
-
* @version 3.0.
|
6
|
+
* @version 3.0.13
|
7
7
|
*/
|
8
8
|
|
9
9
|
(function() {
|
@@ -254,11 +254,17 @@
|
|
254
254
|
|
255
255
|
var $$utils$$isArray = $$utils$$_isArray;
|
256
256
|
var $$utils$$now = Date.now || function() { return new Date().getTime(); };
|
257
|
+
function $$utils$$F() { }
|
257
258
|
|
258
|
-
var $$utils$$o_create = (Object.create || function(
|
259
|
-
|
260
|
-
|
261
|
-
|
259
|
+
var $$utils$$o_create = (Object.create || function (o) {
|
260
|
+
if (arguments.length > 1) {
|
261
|
+
throw new Error('Second argument not supported');
|
262
|
+
}
|
263
|
+
if (typeof o !== 'object') {
|
264
|
+
throw new TypeError('Argument must be an object');
|
265
|
+
}
|
266
|
+
$$utils$$F.prototype = o;
|
267
|
+
return new $$utils$$F();
|
262
268
|
});
|
263
269
|
|
264
270
|
var $$instrument$$queue = [];
|
@@ -1396,9 +1402,9 @@
|
|
1396
1402
|
var $$rsvp$defer$$default = function defer(label) {
|
1397
1403
|
var deferred = { };
|
1398
1404
|
|
1399
|
-
deferred
|
1400
|
-
deferred
|
1401
|
-
deferred
|
1405
|
+
deferred['promise'] = new $$rsvp$promise$$default(function(resolve, reject) {
|
1406
|
+
deferred['resolve'] = resolve;
|
1407
|
+
deferred['reject'] = reject;
|
1402
1408
|
}, label);
|
1403
1409
|
|
1404
1410
|
return deferred;
|
@@ -1474,7 +1480,8 @@
|
|
1474
1480
|
}
|
1475
1481
|
};
|
1476
1482
|
|
1477
|
-
var $$rsvp$asap$$
|
1483
|
+
var $$rsvp$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;
|
1484
|
+
var $$rsvp$asap$$browserGlobal = $$rsvp$asap$$browserWindow || {};
|
1478
1485
|
var $$rsvp$asap$$BrowserMutationObserver = $$rsvp$asap$$browserGlobal.MutationObserver || $$rsvp$asap$$browserGlobal.WebKitMutationObserver;
|
1479
1486
|
|
1480
1487
|
// test for web worker but not in IE10
|
@@ -1489,6 +1496,13 @@
|
|
1489
1496
|
};
|
1490
1497
|
}
|
1491
1498
|
|
1499
|
+
// vertx
|
1500
|
+
function $$rsvp$asap$$useVertxTimer() {
|
1501
|
+
return function() {
|
1502
|
+
vertxNext($$rsvp$asap$$flush);
|
1503
|
+
};
|
1504
|
+
}
|
1505
|
+
|
1492
1506
|
function $$rsvp$asap$$useMutationObserver() {
|
1493
1507
|
var iterations = 0;
|
1494
1508
|
var observer = new $$rsvp$asap$$BrowserMutationObserver($$rsvp$asap$$flush);
|
@@ -1531,6 +1545,16 @@
|
|
1531
1545
|
$$rsvp$asap$$len = 0;
|
1532
1546
|
}
|
1533
1547
|
|
1548
|
+
function $$rsvp$asap$$attemptVertex() {
|
1549
|
+
try {
|
1550
|
+
var vertx = require('vertx');
|
1551
|
+
var vertxNext = vertx.runOnLoop || vertx.runOnContext;
|
1552
|
+
return $$rsvp$asap$$useVertxTimer();
|
1553
|
+
} catch(e) {
|
1554
|
+
return $$rsvp$asap$$useSetTimeout();
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
|
1534
1558
|
var $$rsvp$asap$$scheduleFlush;
|
1535
1559
|
|
1536
1560
|
// Decide what async method to use to triggering processing of queued callbacks:
|
@@ -1540,6 +1564,8 @@
|
|
1540
1564
|
$$rsvp$asap$$scheduleFlush = $$rsvp$asap$$useMutationObserver();
|
1541
1565
|
} else if ($$rsvp$asap$$isWorker) {
|
1542
1566
|
$$rsvp$asap$$scheduleFlush = $$rsvp$asap$$useMessageChannel();
|
1567
|
+
} else if ($$rsvp$asap$$browserWindow === undefined && typeof require === 'function') {
|
1568
|
+
$$rsvp$asap$$scheduleFlush = $$rsvp$asap$$attemptVertex();
|
1543
1569
|
} else {
|
1544
1570
|
$$rsvp$asap$$scheduleFlush = $$rsvp$asap$$useSetTimeout();
|
1545
1571
|
}
|
@@ -1594,10 +1620,10 @@
|
|
1594
1620
|
};
|
1595
1621
|
|
1596
1622
|
/* global define:true module:true window: true */
|
1597
|
-
if (typeof define === 'function' && define
|
1623
|
+
if (typeof define === 'function' && define['amd']) {
|
1598
1624
|
define(function() { return rsvp$umd$$RSVP; });
|
1599
|
-
} else if (typeof module !== 'undefined' && module
|
1600
|
-
module
|
1625
|
+
} else if (typeof module !== 'undefined' && module['exports']) {
|
1626
|
+
module['exports'] = rsvp$umd$$RSVP;
|
1601
1627
|
} else if (typeof this !== 'undefined') {
|
1602
1628
|
this['RSVP'] = rsvp$umd$$RSVP;
|
1603
1629
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsvpjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theodoros Orfanidis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|