ember-auth-module-timeoutable-source 1.0.1 → 1.0.2
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-timeoutable.js +7 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c9463c11393fa692c7c88a825bae9399e8eb151
|
4
|
+
data.tar.gz: df46ea5d2ba338e3ceeb38ea0316826201eef99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cde740e45af45dac82ca503db0bacc28d0bd26482852bb123eea350e223b1aad648e03dd4703696c8d95d663b73d08ad860da16f9f16bb917d6cb426fa3ba1b
|
7
|
+
data.tar.gz: bfdfe30107a287c2cb2fe4b0489ae9e540a5679674e7af6df9b37148e902b38c0ee5b70d77047401925ea38125a96c518fcf3fc918f35743c002c1bc2ab6e279
|
@@ -22,7 +22,8 @@ var set$ = Ember.set;
|
|
22
22
|
set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
|
23
23
|
init: function () {
|
24
24
|
var this$;
|
25
|
-
|
25
|
+
get$(this, 'auth')._config('timeoutable', get$(this, '_defaultConfig'));
|
26
|
+
null != get$(this, 'config') || set$(this, 'config', get$(this, 'auth')._config('timeoutable'));
|
26
27
|
null != get$(get$(this, 'config'), 'callback') || set$(get$(this, 'config'), 'callback', (this$ = this, function () {
|
27
28
|
return get$(this$, 'auth').signOut();
|
28
29
|
}));
|
@@ -30,6 +31,10 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
|
|
30
31
|
get$(this, 'auth').addHandler('signInError', get$(this, 'clear').bind(this));
|
31
32
|
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear').bind(this));
|
32
33
|
},
|
34
|
+
_defaultConfig: {
|
35
|
+
period: 20,
|
36
|
+
callback: null
|
37
|
+
},
|
33
38
|
_startTime: null,
|
34
39
|
timeout: function () {
|
35
40
|
var period;
|
@@ -55,11 +60,4 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
|
|
55
60
|
clear: function () {
|
56
61
|
return set$(this, '_startTime', null);
|
57
62
|
}
|
58
|
-
}))
|
59
|
-
var get$ = Ember.get;
|
60
|
-
get$(Em, 'Auth').reopen({
|
61
|
-
timeoutable: {
|
62
|
-
period: 20,
|
63
|
-
callback: null
|
64
|
-
}
|
65
|
-
});
|
63
|
+
}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-auth-module-timeoutable-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heartsentwined
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ember-source
|