File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
resources/assets/js/annotations/stores Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class Annotations {
67
67
. catch ( function ( ) {
68
68
return Vue . Promise . reject ( `Failed to load annotations for image ${ id } !` ) ;
69
69
} )
70
- . then ( this . parseResponse )
70
+ . then ( this . parseResponse . bind ( this ) )
71
71
. then ( this . resolveAllShapes . bind ( this ) ) ;
72
72
}
73
73
@@ -79,9 +79,9 @@ class Annotations {
79
79
delete annotation . shape ;
80
80
81
81
return ImagesApi . saveAnnotations ( { id : imageId } , annotation )
82
- . then ( this . parseResponse )
82
+ . then ( this . parseResponse . bind ( this ) )
83
83
. then ( this . resolveShape . bind ( this ) )
84
- . then ( this . setDeselected )
84
+ . then ( this . setDeselected . bind ( this ) )
85
85
. then ( ( annotation ) => {
86
86
this . cache [ imageId ] . then ( function ( annotations ) {
87
87
annotations . unshift ( annotation ) ;
You can’t perform that action at this time.
0 commit comments