1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-10 17:24:02 +02:00

fix coding style

This commit is contained in:
Ian Storm Taylor
2016-07-29 08:56:27 -07:00
parent 9ab6267271
commit e45e06d9e8

View File

@@ -3,13 +3,13 @@ import React from 'react'
export default { export default {
rules: [ rules: [
// the first one has no serialize() // An empty rule that does not define `serialize`.
{}, {},
// the second has a serialize() that does not return anything // A second rule that defines `serialize` but doesn't handle the cases.
{ {
serialize(obj, children) {} serialize(obj, children) {}
}, },
// then the real one // The rule that actually matches.
{ {
serialize(obj, children) { serialize(obj, children) {
if (obj.kind == 'block' && obj.type == 'paragraph') { if (obj.kind == 'block' && obj.type == 'paragraph') {