refactor Components props extracting

This commit is contained in:
Horcrux
2017-02-03 19:43:25 +08:00
parent 9b62d500ce
commit 5bd9b40c17
35 changed files with 208 additions and 276 deletions

View File

@@ -76,7 +76,7 @@ function parseDelta(delta) {
} else if (typeof delta === 'number') {
return [delta];
} else {
[];
return [];
}
}
@@ -125,5 +125,5 @@ export default function(props, container) {
startOffset: (startOffset || 0).toString(),
positionX: _.isNil(x) ? null : x.toString(),
positionY: _.isNil(y) ? null : y.toString()
}
};
}