ember-auth-module-epf-source 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/dist/ember-auth-module-epf.js +10 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b61a11c03c409ecdfa56317687da2a7ae0b1842d
4
- data.tar.gz: 0c6d4702f1bfdb6baaa99b5a1d270963cc718f15
3
+ metadata.gz: 873d0894f481838f97a2c9a860d85f5365ff27de
4
+ data.tar.gz: 40c76073d907b8a0e45b2685eee8436420ad1eb8
5
5
  SHA512:
6
- metadata.gz: f048f77ea184e8f18ad908275cc811fbea04d891b94ea1b4a509ba85dc84d2032ff32ab8054f11931f914d2c03cd403699de63f74f66ddaf9028cc6b21b8dee2
7
- data.tar.gz: 5be416b2d3f6f2ef3e8fef156ec2c0fa0bd5c9a63626b55c3364f26412001b258c583ab6019e36eaeee70d47a03b0558b3756b3e93fb68674bc6b1aa45d78f0d
6
+ metadata.gz: 31b44fa1682befb98f013b3babfa4fd420310cce1ce689bd3398a15200fa94e6663f881eb344c1143c73a7196aaad86a008bf21b7ac7dc183c64d9d8d8a1bad9
7
+ data.tar.gz: 226fba648a93f7d791e07acc451be0b0028d8d9e7157d60bb45f2c6c371ca3d35fd288c87b471ec57d3c424258719af6b8089c73c7e04f50f08bec0f08ec710f
@@ -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
- return application.initializer({
4
+ application.initializer({
5
5
  name: 'ember-auth.module.epf',
6
6
  before: 'ember-auth-load',
7
7
  initialize: function (container, app) {
8
- return app.register('authModule:epf', get$(get$(Em, 'Auth'), 'EpfAuthModule'));
8
+ app.register('authModule:epf', get$(get$(Em, 'Auth'), 'EpfAuthModule'), { singleton: true });
9
+ app.inject('authModule:epf', 'auth', 'auth:main');
10
+ return app.inject('authModule:epf', 'session', 'session:main');
9
11
  }
10
12
  });
11
- });
12
- Em.onLoad('Ember.Application', function (application) {
13
13
  return application.initializer({
14
- name: 'ember-auth.module.epf.injection',
15
- after: 'ember-auth.module.epf',
14
+ name: 'ember-auth.module.epf-load',
15
+ after: 'ember-auth-load',
16
16
  initialize: function (container, app) {
17
- return app.inject('authModule:epf', 'session', 'session:main');
17
+ return container.lookup('authModule:epf');
18
18
  }
19
19
  });
20
20
  });// Generated by EmberScript 0.0.7
@@ -25,9 +25,9 @@ set$(get$(Em, 'Auth'), 'EpfAuthModule', Ember.Object.extend({
25
25
  null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'epf'));
26
26
  this.patch();
27
27
  get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.epf.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 () {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-epf-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - heartsentwined