File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,7 @@ npm-debug.log*
18
18
src /
19
19
test /
20
20
examples /
21
- test * . *
21
+ test * . *
22
+ .editorconfig
23
+ .travis.yml
24
+ Gruntfile.js
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dop" ,
3
- "version" : " 0.22.6 " ,
3
+ "version" : " 0.22.7 " ,
4
4
"main" : " ./dist/dop.nodejs.js" ,
5
5
"browser" : " ./dist/dop.js" ,
6
6
"unpkg" : " ./dist/dop.min.js" ,
Original file line number Diff line number Diff line change 1
1
2
- dop . collect = function ( indexFunction ) {
3
- dop . util . invariant ( arguments . length == 0 || ( arguments . length == 1 && isFunction ( indexFunction ) ) , 'dop.collect only accept one argument as function' ) ;
4
- var index = indexFunction ? indexFunction ( dop . data . collectors ) : dop . data . collectors . length ;
2
+ dop . collect = function ( index_function ) {
3
+ dop . util . invariant ( arguments . length == 0 || ( arguments . length == 1 && isFunction ( index_function ) ) , 'dop.collect only accept one argument as function' ) ;
4
+ var index = index_function ? index_function ( dop . data . collectors ) : dop . data . collectors . length ;
5
5
return dop . core . createCollector ( dop . data . collectors , index ) ;
6
6
} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ dop.core.snapshot.prototype.undo = function () {
9
9
if ( this . forward && this . mutations . length > 0 ) {
10
10
this . forward = false ;
11
11
this . setPatch ( this . getUnpatch ( ) ) ;
12
- this . emit ( ) ;
13
12
}
14
13
} ;
15
14
@@ -18,7 +17,6 @@ dop.core.snapshot.prototype.redo = function () {
18
17
if ( ! this . forward && this . mutations . length > 0 ) {
19
18
this . forward = true ;
20
19
this . setPatch ( this . getPatch ( ) ) ;
21
- this . emit ( ) ;
22
20
}
23
21
} ;
24
22
You can’t perform that action at this time.
0 commit comments