update tests

pull/1344/head
Rich Harris 7 years ago
parent 6f4de8f237
commit 3d8c768c81

@ -168,9 +168,9 @@ function SvelteComponent(options) {
var self = this; var self = this;
var _oncreate = function() { var _oncreate = function() {
var initial = { changed: { }, current: self._state, previous: undefined }; var changed = { };
oncreate.call(self); oncreate.call(self);
self.fire("update", initial); self.fire("update", { changed: changed, current: self._state });
}; };
if (!options.root) { if (!options.root) {

@ -32,9 +32,9 @@ function SvelteComponent(options) {
var self = this; var self = this;
var _oncreate = function() { var _oncreate = function() {
var initial = { changed: { }, current: self._state, previous: undefined }; var changed = { };
oncreate.call(self); oncreate.call(self);
self.fire("update", initial); self.fire("update", { changed: changed, current: self._state });
}; };
if (!options.root) { if (!options.root) {

@ -163,9 +163,9 @@ function SvelteComponent(options) {
var self = this; var self = this;
var _oncreate = function() { var _oncreate = function() {
var initial = { changed: { }, current: self._state, previous: undefined }; var changed = { };
oncreate.call(self); oncreate.call(self);
self.fire("update", initial); self.fire("update", { changed: changed, current: self._state });
}; };
if (!options.root) { if (!options.root) {

@ -28,9 +28,9 @@ function SvelteComponent(options) {
var self = this; var self = this;
var _oncreate = function() { var _oncreate = function() {
var initial = { changed: { }, current: self._state, previous: undefined }; var changed = { };
oncreate.call(self); oncreate.call(self);
self.fire("update", initial); self.fire("update", { changed: changed, current: self._state });
}; };
if (!options.root) { if (!options.root) {

Loading…
Cancel
Save