On https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.MenuLayout the example code provided contains a syntax error; if you try the live preview you will get this: SyntaxError: missing ) after argument list
Description
Description
Details
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/core | master | +403 -355 | Update OOUI to v0.31.3 | |
oojs/ui | master | +2 -2 | docs: Fix syntax errors in MenuLayout |
Event Timeline
Comment Actions
To fix it, you need to remove two semicolons. I have shown where it is below:
... menuLayout.$menu.append( menuPanel.$element.append( '<b>Menu panel</b>', select.$element ); <= THIS SEMICOLON ); menuLayout.$content.append( contentPanel.$element.append( '<b>Content panel</b>', '<p>Note that the menu is positioned relative to the content panel: ' + 'top, bottom, after, before.</p>' ); <= THIS ONE TOO ); ...
Comment Actions
Change 501126 had a related patch set uploaded (by Huji; owner: Huji):
[oojs/ui@master] Fix syntax error in OOUI documentations
Comment Actions
Change 501126 merged by jenkins-bot:
[oojs/ui@master] docs: Fix syntax errors in MenuLayout
Comment Actions
Change 501429 had a related patch set uploaded (by VolkerE; owner: VolkerE):
[mediawiki/core@master] Update OOUI to v0.31.3