-
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.
🐛 Actually update the
hawkejs.scene.exposed
values after receiving …
…new data from the server
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -1157,7 +1157,7 @@ Main.setMethod(function _gotCompiled(err, result, callback) { | |
* | ||
* @author Jelle De Loecker <[email protected]> | ||
* @since 2.0.0 | ||
* @version 2.3.7 | ||
* @version 2.3.16 | ||
* | ||
* @param {String|Renderer|Function} template | ||
* @param {Object} variables | ||
|
@@ -1224,6 +1224,11 @@ Main.setMethod(function prepareRenderArguments(template, variables, callback) { | |
renderer.variables = variables; | ||
} | ||
|
||
// Update the exposed variables in the browser now | ||
if (Blast.isBrowser && typeof hawkejs != 'undefined') { | ||
Object.assign(hawkejs.scene.exposed, renderer.expose_to_scene); | ||
} | ||
|
||
return { | ||
renderer : renderer, | ||
template : template, | ||
|