only add this._slotted if necessary

pull/787/head
Rich Harris 8 years ago
parent 361a19df17
commit a469b560d8

@ -181,7 +181,7 @@ export default function dom(
this._root = options._root || this; this._root = options._root || this;
this._yield = options._yield; this._yield = options._yield;
this._bind = options._bind; this._bind = options._bind;
this._slotted = options.slots || {}; ${generator.slots.size && `this._slotted = options.slots || {};`}
${generator.stylesheet.hasStyles && ${generator.stylesheet.hasStyles &&
options.css !== false && options.css !== false &&

@ -4,7 +4,7 @@ import * as path from "path";
import { rollup } from "rollup"; import { rollup } from "rollup";
import { loadConfig, svelte } from "../helpers.js"; import { loadConfig, svelte } from "../helpers.js";
describe.skip("js", () => { describe("js", () => {
fs.readdirSync("test/js/samples").forEach(dir => { fs.readdirSync("test/js/samples").forEach(dir => {
if (dir[0] === ".") return; if (dir[0] === ".") return;

Loading…
Cancel
Save