@endorphinjs/template-runtime
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -146,3 +146,3 @@ 'use strict'; | ||
return forEachHook(elem.componentModel.definition, name, hook => hook.call(null, hookArgs)); | ||
return forEachHook(elem.componentModel.definition, name, hook => hook.apply(null, hookArgs)); | ||
} | ||
@@ -631,3 +631,10 @@ | ||
if (!elem$$1.componentModel.queued) { | ||
elem$$1.componentModel.queued = nextTick(() => renderComponent(elem$$1)); | ||
elem$$1.componentModel.queued = nextTick(() => { | ||
// It’s possible that a component can be rendered before next tick | ||
// (for example, if parent node updated component props). | ||
// Check if it’s still queued then render | ||
if (elem$$1.componentModel.queued) { | ||
renderComponent(elem$$1); | ||
} | ||
}); | ||
} | ||
@@ -634,0 +641,0 @@ } |
@@ -142,3 +142,3 @@ /** | ||
return forEachHook(elem.componentModel.definition, name, hook => hook.call(null, hookArgs)); | ||
return forEachHook(elem.componentModel.definition, name, hook => hook.apply(null, hookArgs)); | ||
} | ||
@@ -627,3 +627,10 @@ | ||
if (!elem$$1.componentModel.queued) { | ||
elem$$1.componentModel.queued = nextTick(() => renderComponent(elem$$1)); | ||
elem$$1.componentModel.queued = nextTick(() => { | ||
// It’s possible that a component can be rendered before next tick | ||
// (for example, if parent node updated component props). | ||
// Check if it’s still queued then render | ||
if (elem$$1.componentModel.queued) { | ||
renderComponent(elem$$1); | ||
} | ||
}); | ||
} | ||
@@ -630,0 +637,0 @@ } |
{ | ||
"name": "@endorphinjs/template-runtime", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226189
2929