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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f90bd0a338cde705fbeb22a2d8406d012b7f625
4
- data.tar.gz: a54f7e72ab588e6259ed7c78df6ff618dec770e4
3
+ metadata.gz: 4d2a61d49e4776b06d071db1debeee169e1e7360
4
+ data.tar.gz: 9638c20a1e4c2358508b20d37a1234b5c14e4e2e
5
5
  SHA512:
6
- metadata.gz: cd343006f64bde474dda3f4215f5bc9da1bd9fd296cfcf59b22683c143ab06cacde2395c5a314d980054a37665b4276964c24fa8eb49e739ef4ce29bfba22d95
7
- data.tar.gz: 202bac743d6e105d003b552ac9e250952835337c60a4d3ab75d05f256a2877129627000678ebb44b31707b3dc6119cdf5b34b8308f94d93ddc98f478c74e0bcf
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
- return application.initializer({
4
+ application.initializer({
5
5
  name: 'ember-auth.module.action-redirectable',
6
6
  before: 'ember-auth-load',
7
7
  initialize: function (container, app) {
8
- return app.register('authModule:actionRedirectable', get$(get$(Em, 'Auth'), 'ActionRedirectableAuthModule'));
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-action_redirectable-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