replace ninja globals

pull/2963/head
mrkishi 5 years ago
parent 3a384f004d
commit b424a88a5f
No known key found for this signature in database
GPG Key ID: 95E966FDD3D8B0AF

@ -405,7 +405,7 @@ export default function dom(
unknown_props_check = deindent`
const writable_props = [${writable_props.map(prop => `'${prop.export_name}'`).join(', ')}];
@_Object.keys($$props).forEach(key => {
if (!writable_props.includes(key) && !key.startsWith('$$')) console.warn(\`<${component.tag}> was created with unknown prop '\${key}'\`);
if (!writable_props.includes(key) && !key.startsWith('$$')) @_console.warn(\`<${component.tag}> was created with unknown prop '\${key}'\`);
});
`;
}

@ -509,7 +509,7 @@ export default class EachBlockWrapper extends Wrapper {
if (outro_block) {
block.builders.outro.add_block(deindent`
${iterations} = ${iterations}.filter(Boolean);
${iterations} = ${iterations}.filter(@_Boolean);
for (let #i = 0; #i < ${view_length}; #i += 1) ${outro_block}(#i, 0, 0);`
);
}

Loading…
Cancel
Save