ember-auth-module-ember_data-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-ember-data.js +10 -10
- 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: 0a9233ec91a9327e976cd176e18366f2094b4584
|
4
|
+
data.tar.gz: 694186ac60d6c39d58160b1b8a1202a62a41c77c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a73b496a98bd35833a821e095afb9e032ca7e6e19cf16eae8b078e428fe4e6fa5fbf09922c88365085e18405a071ee05d11a67630b75e14085d924e5a57ff0f4
|
7
|
+
data.tar.gz: 454f77e822a8e8fa14f769eb05cfcb2130d68de007e9396089bc3d0d38b4c9bafd0322202a486408772b7bdfd2d3669be56dcbbeea701f02da692864eb89c98c
|
@@ -1,20 +1,20 @@
|
|
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.ember-data',
|
6
6
|
before: 'ember-auth-load',
|
7
7
|
initialize: function (container, app) {
|
8
|
-
|
8
|
+
app.register('authModule:emberData', get$(get$(Em, 'Auth'), 'EmberDataAuthModule'), { singleton: true });
|
9
|
+
app.inject('authModule:emberData', 'auth', 'auth:main');
|
10
|
+
return app.inject('authModule:emberData', 'store', 'store:main');
|
9
11
|
}
|
10
12
|
});
|
11
|
-
});
|
12
|
-
Em.onLoad('Ember.Application', function (application) {
|
13
13
|
return application.initializer({
|
14
|
-
name: 'ember-auth.module.ember-data
|
15
|
-
after: 'ember-auth
|
14
|
+
name: 'ember-auth.module.ember-data-load',
|
15
|
+
after: 'ember-auth-load',
|
16
16
|
initialize: function (container, app) {
|
17
|
-
return
|
17
|
+
return container.lookup('authModule:emberData');
|
18
18
|
}
|
19
19
|
});
|
20
20
|
});// Generated by EmberScript 0.0.7
|
@@ -25,9 +25,9 @@ set$(get$(Em, 'Auth'), 'EmberDataAuthModule', Ember.Object.extend({
|
|
25
25
|
null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'emberData'));
|
26
26
|
this.patch();
|
27
27
|
get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.emberData.user') });
|
28
|
-
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser'));
|
29
|
-
get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser'));
|
30
|
-
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser'));
|
28
|
+
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser').bind(this));
|
29
|
+
get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser').bind(this));
|
30
|
+
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser').bind(this));
|
31
31
|
},
|
32
32
|
user: null,
|
33
33
|
findUser: function () {
|