Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Resources/public/js/editInPlace.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
// it is not possible to use HTMLElement directly
class XTrans extends HTMLElement {}

customElements.define("x-trans", XTrans);

if (!customElements.get('x-trans')) {
customElements.define("x-trans", XTrans);
}

return;
}

Expand Down
2 changes: 0 additions & 2 deletions Twig/Visitor/DefaultApplyingNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ public function enterNode(Node $node, Environment $env): Node

$expr = new EqualBinary($testNode, $transNode->getNode('node'), $wrappingNode->getTemplateLine());
if (Environment::VERSION_ID >= 31700) {
$expr->setAttribute('operator', 'binary_==');

$condition = new ConditionalTernary(
$expr,
$defaultNode,
Expand Down