ember-auth-module-timeoutable-source 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/dist/ember-auth-module-timeoutable.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: 655ab925ec97249a8f19f3f3b75b66b16616edce
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: af4bfcf4223e615260458827485c620ff0df3106
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 21e5f2ee27cce64e08c2abffe91cec7e507e6e99713a343a1eba2830a162a2183ae951f816ae03bca0fca265de86c547c780f243071595dc016ec18d12a09e56
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: ce590f2239983cafb41b21c6119d0e20bb8a3d79dcb18d8e483be9e81caa866bb478b7d956d0e40d2f0ed1564ceebc872cd9fd0b9901ceae7fa53e29d83b93ef
         
     | 
| 
         @@ -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.timeoutable',
         
     | 
| 
       6 
6 
     | 
    
         
             
                before: 'ember-auth-load',
         
     | 
| 
       7 
7 
     | 
    
         
             
                initialize: function (container, app) {
         
     | 
| 
       8 
     | 
    
         
            -
                   
     | 
| 
      
 8 
     | 
    
         
            +
                  app.register('authModule:timeoutable', get$(get$(Em, 'Auth'), 'TimeoutableAuthModule'), { singleton: true });
         
     | 
| 
      
 9 
     | 
    
         
            +
                  return app.inject('authModule:timeoutable', 'auth', 'auth:main');
         
     | 
| 
      
 10 
     | 
    
         
            +
                }
         
     | 
| 
      
 11 
     | 
    
         
            +
              });
         
     | 
| 
      
 12 
     | 
    
         
            +
              return application.initializer({
         
     | 
| 
      
 13 
     | 
    
         
            +
                name: 'ember-auth.module.timeoutable-load',
         
     | 
| 
      
 14 
     | 
    
         
            +
                after: 'ember-auth-load',
         
     | 
| 
      
 15 
     | 
    
         
            +
                initialize: function (container, app) {
         
     | 
| 
      
 16 
     | 
    
         
            +
                  return container.lookup('authModule:timeoutable');
         
     | 
| 
       9 
17 
     | 
    
         
             
                }
         
     | 
| 
       10 
18 
     | 
    
         
             
              });
         
     | 
| 
       11 
19 
     | 
    
         
             
            });// Generated by EmberScript 0.0.7
         
     | 
| 
         @@ -18,9 +26,9 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({ 
     | 
|
| 
       18 
26 
     | 
    
         
             
                null != get$(get$(this, 'config'), 'callback') || set$(get$(this, 'config'), 'callback', (this$ = this, function () {
         
     | 
| 
       19 
27 
     | 
    
         
             
                  return get$(this$, 'auth').signOut();
         
     | 
| 
       20 
28 
     | 
    
         
             
                }));
         
     | 
| 
       21 
     | 
    
         
            -
                get$(this, 'auth').addHandler('signInSuccess', get$(this, 'register'));
         
     | 
| 
       22 
     | 
    
         
            -
                get$(this, 'auth').addHandler('signInError', get$(this, 'clear'));
         
     | 
| 
       23 
     | 
    
         
            -
                return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear'));
         
     | 
| 
      
 29 
     | 
    
         
            +
                get$(this, 'auth').addHandler('signInSuccess', get$(this, 'register').bind(this));
         
     | 
| 
      
 30 
     | 
    
         
            +
                get$(this, 'auth').addHandler('signInError', get$(this, 'clear').bind(this));
         
     | 
| 
      
 31 
     | 
    
         
            +
                return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear').bind(this));
         
     | 
| 
       24 
32 
     | 
    
         
             
              },
         
     | 
| 
       25 
33 
     | 
    
         
             
              _startTime: null,
         
     | 
| 
       26 
34 
     | 
    
         
             
              timeout: function () {
         
     |