-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Make Scene#generalPostRender parse expressions
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
*/ | ||
|
@@ -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)); | ||
} | ||
} | ||
|
||
|