Commit 140dcd6 1 parent 91f88b6 commit 140dcd6 Copy full SHA for 140dcd6
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 45
45
* @param {Object|Function } target to convert into emitter
46
46
* @return {Object|Function } target converted into emitter
47
47
*/
48
- energy [ 'into ' ] = function ( target ) {
48
+ energy [ 'to ' ] = function ( target ) {
49
49
return defaults ( target , this . call ( ) ) ;
50
50
} ;
51
51
54
54
* @param {Object|Energy|Function } target to convert into emitter
55
55
* @return {Object|Energy|Function } source for chaining
56
56
*/
57
- emitter [ 'into ' ] = function ( target ) {
57
+ emitter [ 'to ' ] = function ( target ) {
58
58
defaults ( target , this ) ;
59
59
return this ;
60
60
} ;
Original file line number Diff line number Diff line change 13
13
aok ( 'instance' , emitter instanceof energy ) ;
14
14
aok ( 'listeners' , typeof emitter . listeners ( key ) . length == 'number' ) ;
15
15
16
- aok ( 'into ' , function ( ) {
16
+ aok ( 'to ' , function ( ) {
17
17
function wannabe ( ) {
18
18
wannabe . emit ( 'called' ) ;
19
19
}
20
20
21
- var bool = wannabe === energy . into ( wannabe ) && typeof wannabe . emit == 'function' ;
21
+ var bool = wannabe === energy . to ( wannabe ) && typeof wannabe . emit == 'function' ;
22
22
bool && wannabe . once ( 'called' , function ( ) {
23
23
bool = this === wannabe ;
24
24
} ) && wannabe ( ) ;
You can’t perform that action at this time.
0 commit comments