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 +4 -4
- data/dist/ember-auth-module-auth-redirectable.js +14 -21
- 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: 1ff346e3d82e43075789cdb2bff0e0fe0227d5a5
|
4
|
+
data.tar.gz: a2d176720bdde13bc53c1a52c35b11fc3f701665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
return
|
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.
|
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
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ember-source
|