UNPKG
torii
Version:
beta (1.0.0-beta.2)
latest (0.10.1)
1.0.0-beta.2
1.0.0-beta.1
0.10.1
0.10.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.1-beta.1
0.8.0
0.8.0-beta.2
0.8.0-beta.1
0.7.0-beta1
0.7.0-beta.4
0.7.0-beta.3
0.7.0-beta.2
0.7.0-beta.1
0.6.1
0.6.0
0.6.0-beta.8
0.6.0-beta.7
0.6.0-beta.6
0.6.0-beta.5
0.6.0-beta.4
0.6.0-beta.3
0.6.0-beta.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
A set of clean abstractions for authentication in Ember.js
github.com/vestorly/torii
vestorly/torii
torii
/
addon
/
lib
/
required-property.js
10 lines
(7 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ computed }
from
'@ember/object'
;
function
requiredProperty
(
){
return
computed
(
function
(
key
){
throw
new
Error
(
"Definition of property "
+key+
" by a subclass is required."
); }); }
export
default
requiredProperty;