Skip to content

Commit

Permalink
πŸ› Make Scene#generalPostRender parse expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed May 5, 2024
1 parent 85f8143 commit 9f47e32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/client/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ Scene.setMethod(function disableStyle(instructions) {
*
* @author Jelle De Loecker <[email protected]>
* @since 1.0.0
* @version 2.0.3
* @version 2.4.0
*
* @param {Hawkejs.Renderer} renderer
*/
Expand Down Expand Up @@ -2768,17 +2768,17 @@ Scene.setMethod(function generalPostRender(renderer) {

// Always make sure the initial assign classname is added
if (assign.options && assign.options.className) {
Hawkejs.addClasses(element, assign.options.className);
Hawkejs.addClasses(element, renderer.parseRuntimeExpression(assign.options.className));
}

// If the old block assigned classnames, remove those
if (old_block && old_block.options && old_block.options.className) {
Hawkejs.removeClasses(element, old_block.options.className);
Hawkejs.removeClasses(element, renderer.parseRuntimeExpression(old_block.options.className));
}

// If the newblock has classes, add those
if (block && block.options && block.options.className && block.options.content != 'push') {
Hawkejs.addClasses(element, block.options.className);
Hawkejs.addClasses(element, renderer.parseRuntimeExpression(block.options.className));
}
}

Expand Down

0 comments on commit 9f47e32

Please sign in to comment.