pull/799/merge
Maxwell Amante 8 years ago committed by GitHub
commit 5426279528

@ -153,7 +153,7 @@ export default function dom(
function ${name} ( options ) {
${options.dev &&
`if ( !options || (!options.target && !options._root) ) throw new Error( "'target' is a required option" );`}
this.options = options;
this.options = options || {};
${generator.usesRefs && `this.refs = {};`}
this._state = ${templateProperties.data
? `@assign( @template.data(), options.data )`

@ -217,7 +217,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = assign( template.data(), options.data );
this._observers = {

@ -53,7 +53,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = assign( template.data(), options.data );
this._observers = {
@ -79,4 +79,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -165,7 +165,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._recompute( {}, this._state, {}, true );

@ -25,7 +25,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._recompute( {}, this._state, {}, true );
@ -57,4 +57,4 @@ SvelteComponent.prototype._recompute = function _recompute ( changed, state, old
}
}
export default SvelteComponent;
export default SvelteComponent;

@ -199,7 +199,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -39,7 +39,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -65,4 +65,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -313,7 +313,7 @@ function create_each_block ( state, each_block_value, comment, i, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -140,7 +140,7 @@ function create_each_block ( state, each_block_value, comment, i, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -164,4 +164,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -210,7 +210,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -50,7 +50,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -74,4 +74,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, template.methods, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -252,7 +252,7 @@ function select_block_type ( state ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -88,7 +88,7 @@ function select_block_type ( state ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -112,4 +112,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -228,7 +228,7 @@ function create_if_block ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -64,7 +64,7 @@ function create_if_block ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -88,4 +88,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -186,7 +186,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -28,7 +28,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -52,4 +52,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -202,7 +202,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -50,7 +50,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -88,4 +88,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -164,7 +164,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -24,7 +24,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -61,4 +61,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

@ -175,7 +175,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -35,7 +35,7 @@ function create_main_fragment ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -61,4 +61,4 @@ assign( SvelteComponent.prototype, template.methods, proto );
template.setup( SvelteComponent );
export default SvelteComponent;
export default SvelteComponent;

@ -412,7 +412,7 @@ function create_if_block_4 ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {

@ -248,7 +248,7 @@ function create_if_block_4 ( state, component ) {
}
function SvelteComponent ( options ) {
this.options = options;
this.options = options || {};
this._state = options.data || {};
this._observers = {
@ -272,4 +272,4 @@ function SvelteComponent ( options ) {
assign( SvelteComponent.prototype, proto );
export default SvelteComponent;
export default SvelteComponent;

Loading…
Cancel
Save