ember-auth-module-auth_redirectable-source 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a42c242db8d76dc55d6c87aa981ef9e6976a98bb
4
- data.tar.gz: 92373b7783c738a776d0287c317b98e20647b0d5
3
+ metadata.gz: 1ff346e3d82e43075789cdb2bff0e0fe0227d5a5
4
+ data.tar.gz: a2d176720bdde13bc53c1a52c35b11fc3f701665
5
5
  SHA512:
6
- metadata.gz: 781b3fef035f21980c282ee3b9d518faac70bbefcab5783a3762b3eb2a51ac5523567cd880ff0476c1d199d0d32d0c475ae9a3aff795171079d13b7f7ec15d04
7
- data.tar.gz: 585367428c8db916f5e13e240019278d2df237ad843e8ca27585265182f1c71ee699e6e176734bb21d0deb504649da5bc449a3a1ed25c01ff0ee9cfbe6477043
6
+ metadata.gz: 90644122bf1b64d199b3e5e3500239406688d5c83576a9762d4a74303ffd5d18f210fc7315040a1374581c945d84940f46be131b6a9e73422908803ef4d7e172
7
+ data.tar.gz: 49d676a8dbf0a9b4fe8fa92e575048629989b2c90389eba1bedd841b008d00c82501c571ce0ee4fbd1c1acf8d4a698204b738f1adb826ab02d52bf1a180c49eb
@@ -32,29 +32,22 @@ set$(get$(Em, 'Auth'), 'AuthRedirectableAuthModule', Ember.Object.extend({
32
32
  self = this;
33
33
  return get$(Em, 'Route').reopen({
34
34
  beforeModel: function (queryParams, transition) {
35
- var handler, promises, ret, this$, this$1;
36
- ret = this._super.apply(this, arguments);
37
- if (get$(get$(self, 'auth'), 'signedIn') || !get$(this, 'authRedirectable'))
38
- return ret;
39
- if (!(null != transition))
40
- transition = queryParams;
41
- promises = [];
42
- for (var i$ = 0, length$ = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess').length; i$ < length$; ++i$) {
43
- handler = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess')[i$];
44
- promises.push(handler(transition));
45
- }
46
- if (typeof get$(ret, 'then') === 'function') {
47
- return ret.then((this$ = this, function () {
48
- var this$1;
49
- return get$(Em, 'RSVP').all(promises).then((this$1 = this$, function () {
50
- return this$1.transitionTo(get$(get$(self, 'config'), 'route'));
51
- }));
52
- }));
53
- } else {
54
- return get$(Em, 'RSVP').all(promises).then((this$1 = this, function () {
35
+ var this$;
36
+ return get$(self, 'auth')._ensurePromise(this._super.apply(this, arguments)).then((this$ = this, function () {
37
+ var handler, promises, this$1;
38
+ if (get$(get$(self, 'auth'), 'signedIn') || !get$(this$, 'authRedirectable'))
39
+ return;
40
+ if (!(null != transition))
41
+ transition = queryParams;
42
+ promises = [];
43
+ for (var i$ = 0, length$ = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess').length; i$ < length$; ++i$) {
44
+ handler = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess')[i$];
45
+ promises.push(handler(transition));
46
+ }
47
+ return get$(Em, 'RSVP').all(promises).then((this$1 = this$, function () {
55
48
  return this$1.transitionTo(get$(get$(self, 'config'), 'route'));
56
49
  }));
57
- }
50
+ }));
58
51
  }
59
52
  });
60
53
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-auth_redirectable-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - heartsentwined
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-source