Comparing version 1.6.7 to 1.6.8
# Svelte changelog | ||
## 1.6.8 | ||
* Always trigger `onrender`, including when change initiator is a nested component ([#263](https://github.com/sveltejs/svelte/issues/263)) | ||
* Handle default function parameters in computations ([#274](https://github.com/sveltejs/svelte/issues/274)) | ||
## 1.6.7 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "svelte", | ||
"version": "1.6.7", | ||
"version": "1.6.8", | ||
"description": "The magical disappearing UI framework", | ||
@@ -5,0 +5,0 @@ "main": "compiler/svelte.js", |
@@ -101,2 +101,16 @@ function appendNode ( node, target ) { | ||
function set ( newState ) { | ||
this._set( newState ); | ||
( this._root || this )._flush(); | ||
} | ||
function _flush () { | ||
if ( !this._renderHooks ) return; | ||
while ( this._renderHooks.length ) { | ||
var hook = this._renderHooks.pop(); | ||
hook.fn.call( hook.context ); | ||
} | ||
} | ||
function noop () {} | ||
@@ -127,2 +141,2 @@ | ||
export { noop, dispatchObservers, appendNode, insertNode, detachNode, detachBetween, teardownEach, createElement, createSvgElement, createText, createComment, addEventListener, removeEventListener, setAttribute, setXlinkAttribute, get, fire, observe, on }; | ||
export { noop, dispatchObservers, appendNode, insertNode, detachNode, detachBetween, teardownEach, createElement, createSvgElement, createText, createComment, addEventListener, removeEventListener, setAttribute, setXlinkAttribute, get, fire, observe, on, set, _flush }; |
Sorry, the diff of this file is too big to display
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
805394
6654