ember-auth-module-rememberable-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-rememberable.js +13 -5
- 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: 36acb3de2eeb6ab2c068bcd20db78f6abc6a8fb4
|
4
|
+
data.tar.gz: 50d9cb96698e979c895ba62b971cd1f8355b73b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8ef344e8aaf16f593e636128fd6cd31d7cd965709a3a67097cac024b58814d82f94a67f195ab1f7c4f7d39062ebfb18e76250406431d1c8cc9fb0841f2af198
|
7
|
+
data.tar.gz: b4324e7a6737e773da5cfa5222334104a3834f237a8382d7e11a306fc4572020a1d6fc344ff81005e1fac60d9660f69bf82bc1421fc2f696d6b1e21481267555
|
@@ -1,11 +1,19 @@
|
|
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.rememberable',
|
6
6
|
before: 'ember-auth-load',
|
7
7
|
initialize: function (container, app) {
|
8
|
-
|
8
|
+
app.register('authModule:rememberable', get$(get$(Em, 'Auth'), 'RememberableAuthModule'), { singleton: true });
|
9
|
+
return app.inject('authModule:rememberable', 'auth', 'auth:main');
|
10
|
+
}
|
11
|
+
});
|
12
|
+
return application.initializer({
|
13
|
+
name: 'ember-auth.module.rememberable-load',
|
14
|
+
after: 'ember-auth-load',
|
15
|
+
initialize: function (container, app) {
|
16
|
+
return container.lookup('authModule:rememberable');
|
9
17
|
}
|
10
18
|
});
|
11
19
|
});// Generated by EmberScript 0.0.7
|
@@ -15,9 +23,9 @@ set$(get$(Em, 'Auth'), 'RememberableAuthModule', Ember.Object.extend({
|
|
15
23
|
init: function () {
|
16
24
|
null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'rememberable'));
|
17
25
|
this.patch();
|
18
|
-
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'remember'));
|
19
|
-
get$(this, 'auth').addHandler('signInError', get$(this, 'forget'));
|
20
|
-
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'forget'));
|
26
|
+
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'remember').bind(this));
|
27
|
+
get$(this, 'auth').addHandler('signInError', get$(this, 'forget').bind(this));
|
28
|
+
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'forget').bind(this));
|
21
29
|
},
|
22
30
|
recall: function (opts) {
|
23
31
|
var token;
|