Use Surface#setDisabled instead of deprecated #disable

Change-Id: Idf998ddc0b95efbf6befbcfa493c42b4c3ba1bfc
This commit is contained in:
Ed Sanders 2016-12-10 20:02:13 +00:00
parent d555b5ba33
commit 2d645d1631

View file

@ -440,7 +440,7 @@ ve.init.mw.DesktopArticleTarget.prototype.activate = function ( dataPromise ) {
{ type: 'paragraph' }, { type: '/paragraph' },
{ type: 'internalList' }, { type: '/internalList' }
] ) );
surface.disable();
surface.setDisabled( true );
// setSurface creates dummy toolbar
this.dummyToolbar = true;
this.setSurface( surface );