Rename index to profileIndex for clarity (#952)

This commit is contained in:
toasted-nutbread 2020-10-23 21:37:22 -04:00 committed by GitHub
parent 6422845bbb
commit 4188adae28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ class ProfileConditionsUI {
return this._settingsController; return this._settingsController;
} }
get index() { get profileIndex() {
return this._settingsController.profileIndex; return this._settingsController.profileIndex;
} }
@ -202,7 +202,7 @@ class ProfileConditionsUI {
getPath(property) { getPath(property) {
property = (typeof property === 'string' ? `.${property}` : ''); property = (typeof property === 'string' ? `.${property}` : '');
return `profiles[${this.index}]${property}`; return `profiles[${this.profileIndex}]${property}`;
} }
createKeyboardMouseInputField(inputNode, mouseButton) { createKeyboardMouseInputField(inputNode, mouseButton) {