Browse Source

Changed: EditableCollection prepared for changed ObservableMixin.

Szymon Cofalik 9 năm trước cách đây
mục cha
commit
79aed8aa15
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/editablecollection.js

+ 1 - 1
src/editablecollection.js

@@ -33,7 +33,7 @@ export default class EditableCollection extends Collection {
 		this.set( 'current', null );
 
 		this.on( 'add', ( evt, editable ) => {
-			this.listenTo( editable, 'change:isFocused', ( evt, value ) => {
+			this.listenTo( editable, 'change:isFocused', ( evt, name, value ) => {
 				this.current = value ? editable : null;
 			} );
 		} );