Make disabling input methods work
Mark isDirty correctly. Change-Id: I1c5219c9f63dec15272dd97341295e346cdabcb3
This commit is contained in:
committed by
Gerrit Code Review
parent
a98ff90d49
commit
f47b54819b
@@ -78,19 +78,20 @@
|
||||
},
|
||||
|
||||
disable: function () {
|
||||
this.registry['enable'] = false;
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = false;
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
this.registry['enable'] = true;
|
||||
this.registry.isDirty = true;
|
||||
this.registry.enable = true;
|
||||
},
|
||||
|
||||
isEnabled: function () {
|
||||
|
||||
if ( this.registry['enable'] === undefined ) {
|
||||
if ( this.registry.enable === undefined ) {
|
||||
return mw.config.get( 'wgULSIMEEnabled' );
|
||||
} else {
|
||||
return this.registry['enable'];
|
||||
return this.registry.enable;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user