Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/276730
Change subject: CommandHelpDialog: Use this.constructor.static
......................................................................
CommandHelpDialog: Use this.constructor.static
Change-Id: I0c9c3f124c08c5ca1d9d310f15c33cbf82a22cae
---
M src/ui/dialogs/ve.ui.CommandHelpDialog.js
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/30/276730/1
diff --git a/src/ui/dialogs/ve.ui.CommandHelpDialog.js
b/src/ui/dialogs/ve.ui.CommandHelpDialog.js
index 51987e2..9ad8849 100644
--- a/src/ui/dialogs/ve.ui.CommandHelpDialog.js
+++ b/src/ui/dialogs/ve.ui.CommandHelpDialog.js
@@ -87,7 +87,7 @@
platform = ve.getSystemPlatform();
platformKey = platform === 'mac' ? 'mac' : 'pc';
- commandGroups = ve.ui.CommandHelpDialog.static.commandGroups;
+ commandGroups = this.constructor.static.commandGroups;
this.contentLayout = new OO.ui.PanelLayout( {
scrollable: true,
@@ -97,7 +97,7 @@
this.$container = $( '<div>' ).addClass(
've-ui-commandHelpDialog-container' );
for ( i in commandGroups ) {
- commands =
ve.ui.CommandHelpDialog.static.sortedCommandsFromGroup( i, commandGroups[ i
].promote, commandGroups[ i ].demote );
+ commands = this.constructor.static.sortedCommandsFromGroup( i,
commandGroups[ i ].promote, commandGroups[ i ].demote );
$list = $( '<dl>' ).addClass( 've-ui-commandHelpDialog-list' );
for ( j = 0, jLen = commands.length; j < jLen; j++ ) {
if ( commands[ j ].trigger ) {
@@ -119,7 +119,7 @@
$shortcut = $( '<dt>' );
for ( k = 0, kLen = triggerList.length; k < kLen; k++ )
{
$shortcut.append( $( '<kbd>' ).append(
- triggerList[ k ].getMessage( true
).map( ve.ui.CommandHelpDialog.static.buildKeyNode )
+ triggerList[ k ].getMessage( true
).map( this.constructor.static.buildKeyNode )
).find( 'kbd + kbd' ).before( '+' ).end() );
}
if ( commands[ j ].sequences ) {
@@ -129,7 +129,7 @@
$shortcut.append( $( '<kbd
class="ve-ui-commandHelpDialog-sequence">' )
.attr( 'data-label',
ve.msg( 'visualeditor-shortcuts-sequence-notice' ) )
.append(
-
sequence.getMessage( true ).map( ve.ui.CommandHelpDialog.static.buildKeyNode )
+
sequence.getMessage( true ).map( this.constructor.static.buildKeyNode )
)
);
}
--
To view, visit https://gerrit.wikimedia.org/r/276730
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c9c3f124c08c5ca1d9d310f15c33cbf82a22cae
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits