This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @inheritdoc | |
*/ | |
ve.ui.LinkInspector.prototype.setup = function ( data ) { | |
var focusedNode = this.surface.getView().getFocusedNode(); | |
if ( | |
focusedNode && | |
ve.isInstanceOfAny( focusedNode.getModel(), this.constructor.static.modelClasses ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Local Symbols */ | |
( function ( oo, $ ) { | |
/* Your code here */ | |
/* Global Symbols */ | |
}( ObjectOrientedJavaScript, jQuery ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trevor-Parscals-MacBook-Air:wikidom tparscal$ svn commit -m "Added auto-scrolling when the cursor is moved and fixed some syntax issues that jshint caught" | |
Sending lib/synth/views/es.SurfaceView.js | |
Transmitting file data .svn: Commit failed (details follow): | |
svn: Commit blocked by pre-commit hook (exit code 255) with no output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Transplant the CSS styles from as parent document to a frame's document. | |
* | |
* This loops over the style sheets in the parent document, and copies their nodes to the | |
* frame's document. It then polls the document to see when all styles have loaded, and once they | |
* have, resolves the promise. | |
* | |
* If the styles still haven't loaded after a long time (5 seconds by default), we give up waiting | |
* and resolve the promise anyway. This protects against cases like a display: none; iframe in | |
* Firefox, where the styles won't load until the iframe becomes visible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sycnhronous before | |
MyClass.prototype.doSomething = function () { | |
// do something synchronously after parent method that may or may not return a promise | |
this.test = 1; | |
return OO.ui.promisify( MyClass.super.prototype.doSomething ).call( this ); | |
}; | |
// Sycnhronous after | |
MyClass.prototype.doSomething = function () { | |
return OO.ui.promisify( MyClass.super.prototype.doSomething ).call( this ).then( function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php array( | |
'help' => 'help.svg', | |
'next' => array( | |
'image' => array( | |
'ltr' => 'next.svg', | |
'rtl' => 'prev.svg' | |
), | |
), | |
'list' => array( | |
'image' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this in the root of the mmv repo | |
# Find and replace script symbols | |
find resources/mmv -name \*.js -exec sed -i '' \ | |
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \ | |
-e 's/MenuWidget/MenuSelectWidget/g' \ | |
-e 's/MenuItemWidget/MenuOptionWidget/g' \ | |
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \ | |
-e 's/OutlineWidget/OutlineSelectWidget/g' \ | |
-e 's/OutlineItemWidget/OutlineOptionWidget/g' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this in the root of the ve mw repo | |
# Find and replace script symbols | |
find modules -name \*.js -exec sed -i '' \ | |
-e 's/MWInternalLinkMenuItemWidget/MWInternalLinkMenuOptionWidget/g' \ | |
-e 's/MWLinkMenuItemWidget/MWLinkMenuOptionWidget/g' \ | |
-e 's/ContextMenuWidget/ContextSelectWidget/g' \ | |
-e 's/ContextItemWidget/ContextOptionWidget/g' \ | |
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \ | |
-e 's/MenuWidget/MenuSelectWidget/g' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this in the root of the ve repo | |
# Find and replace script symbols | |
find . -name \*.js -exec sed -i '' \ | |
-e 's/ContextMenuWidget/ContextSelectWidget/g' \ | |
-e 's/ContextItemWidget/ContextOptionWidget/g' \ | |
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \ | |
-e 's/MenuWidget/MenuSelectWidget/g' \ | |
-e 's/MenuItemWidget/MenuOptionWidget/g' \ | |
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this in the root of the oojs-ui repo | |
# Find and replace script symbols | |
find . -name \*.js -exec sed -i '' \ | |
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \ | |
-e 's/MenuWidget/MenuSelectWidget/g' \ | |
-e 's/MenuItemWidget/MenuOptionWidget/g' \ | |
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \ | |
-e 's/OutlineWidget/OutlineSelectWidget/g' \ | |
-e 's/OutlineItemWidget/OutlineOptionWidget/g' \ |
NewerOlder