ember-auth-module-action_redirectable-source 1.0.0 → 1.0.1
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-action-redirectable.js +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2a61d49e4776b06d071db1debeee169e1e7360
|
4
|
+
data.tar.gz: 9638c20a1e4c2358508b20d37a1234b5c14e4e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fb584a64803b5cb6c7de333f6700d8e6d639c4ab2449eeac2eee2bf25b74ba9c1f7461853568b718f1e4ca847a53bf8d75f771f9c32b5e3cffcebc46974c3b6
|
7
|
+
data.tar.gz: 5dfdfea62b6b3a7d89c3c914fa0c9836a57f794181f27e46fd63590fb9b2ccd5f4bb10cbc85bb672ffefcf7c1bba9051dacabf866a246fc616024ab4d2281869
|
@@ -1,19 +1,12 @@
|
|
1
1
|
// Generated by EmberScript 0.0.7
|
2
2
|
var get$ = Ember.get;
|
3
3
|
Em.onLoad('Ember.Application', function (application) {
|
4
|
-
|
4
|
+
application.initializer({
|
5
5
|
name: 'ember-auth.module.action-redirectable',
|
6
6
|
before: 'ember-auth-load',
|
7
7
|
initialize: function (container, app) {
|
8
|
-
|
9
|
-
|
10
|
-
});
|
11
|
-
});
|
12
|
-
Em.onLoad('Ember.Application', function (application) {
|
13
|
-
return application.initializer({
|
14
|
-
name: 'ember-auth.module.action-redirectable.inject',
|
15
|
-
after: 'ember-auth.module.action-redirectable',
|
16
|
-
initialize: function (container, app) {
|
8
|
+
app.register('authModule:actionRedirectable', get$(get$(Em, 'Auth'), 'ActionRedirectableAuthModule'), { singleton: true });
|
9
|
+
app.inject('authModule:actionRedirectable', 'auth', 'auth:main');
|
17
10
|
app.inject('authModule:actionRedirectable', 'router', 'router:main');
|
18
11
|
return get$(Em, 'Route').reopen({
|
19
12
|
beforeModel: function (queryParams, transition) {
|
@@ -25,14 +18,21 @@ Em.onLoad('Ember.Application', function (application) {
|
|
25
18
|
});
|
26
19
|
}
|
27
20
|
});
|
21
|
+
return application.initializer({
|
22
|
+
name: 'ember-auth.module.action-redirectable-load',
|
23
|
+
after: 'ember-auth-load',
|
24
|
+
initialize: function (container, app) {
|
25
|
+
return container.lookup('authModule:actionRedirectable');
|
26
|
+
}
|
27
|
+
});
|
28
28
|
});// Generated by EmberScript 0.0.7
|
29
29
|
var get$ = Ember.get;
|
30
30
|
var set$ = Ember.set;
|
31
31
|
set$(get$(Em, 'Auth'), 'ActionRedirectableAuthModule', Ember.Object.extend({
|
32
32
|
init: function () {
|
33
33
|
null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'actionRedirectable'));
|
34
|
-
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'redirect'));
|
35
|
-
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'redirect'));
|
34
|
+
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'redirect').bind(this));
|
35
|
+
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'redirect').bind(this));
|
36
36
|
},
|
37
37
|
signInRedir: null,
|
38
38
|
signOutRedir: null,
|