@endorphinjs/template-runtime
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -1515,3 +1515,3 @@ 'use strict'; | ||
if (componentModel.mounted && !componentModel.rendering) { | ||
scheduleRender(element, null, componentModel.finalizing); | ||
scheduleRender(element); | ||
} | ||
@@ -1616,7 +1616,6 @@ } | ||
finalizeEvents(input); | ||
updateSlots(elem$$1); | ||
if (changes) { | ||
if (changes || elem$$1.componentModel.queued) { | ||
renderNext(elem$$1, changes); | ||
} else { | ||
updateSlots(elem$$1); | ||
} | ||
@@ -1692,3 +1691,2 @@ } | ||
* @param {Object} [changes] | ||
* @param {boolean} [nextFrame] | ||
*/ | ||
@@ -1719,3 +1717,7 @@ function scheduleRender(elem$$1, changes) { | ||
componentModel.queued = null; | ||
if (componentModel.queued) { | ||
cancelAnimationFrame(componentModel.queued); | ||
componentModel.queued = null; | ||
} | ||
componentModel.rendering = true; | ||
@@ -1741,3 +1743,2 @@ | ||
runHook(elem$$1, 'didUpdate', args); | ||
updateSlots(elem$$1); | ||
componentModel.finalizing = false; | ||
@@ -1744,0 +1745,0 @@ } |
@@ -1511,3 +1511,3 @@ /** | ||
if (componentModel.mounted && !componentModel.rendering) { | ||
scheduleRender(element, null, componentModel.finalizing); | ||
scheduleRender(element); | ||
} | ||
@@ -1612,7 +1612,6 @@ } | ||
finalizeEvents(input); | ||
updateSlots(elem$$1); | ||
if (changes) { | ||
if (changes || elem$$1.componentModel.queued) { | ||
renderNext(elem$$1, changes); | ||
} else { | ||
updateSlots(elem$$1); | ||
} | ||
@@ -1688,3 +1687,2 @@ } | ||
* @param {Object} [changes] | ||
* @param {boolean} [nextFrame] | ||
*/ | ||
@@ -1715,3 +1713,7 @@ function scheduleRender(elem$$1, changes) { | ||
componentModel.queued = null; | ||
if (componentModel.queued) { | ||
cancelAnimationFrame(componentModel.queued); | ||
componentModel.queued = null; | ||
} | ||
componentModel.rendering = true; | ||
@@ -1737,3 +1739,2 @@ | ||
runHook(elem$$1, 'didUpdate', args); | ||
updateSlots(elem$$1); | ||
componentModel.finalizing = false; | ||
@@ -1740,0 +1741,0 @@ } |
{ | ||
"name": "@endorphinjs/template-runtime", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "EndorphinJS template runtime, embedded with template bundles", | ||
@@ -5,0 +5,0 @@ "main": "./dist/runtime.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
338079