some code tidyup
This commit is contained in:
@@ -45,7 +45,9 @@ module.exports = {
|
|||||||
var closeMenu = function() {
|
var closeMenu = function() {
|
||||||
ReactDOM.unmountComponentAtNode(self.getOrCreateContainer());
|
ReactDOM.unmountComponentAtNode(self.getOrCreateContainer());
|
||||||
|
|
||||||
if (props && props.onFinished) props.onFinished.apply(null, arguments);
|
if (props && props.onFinished) {
|
||||||
|
props.onFinished.apply(null, arguments);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var position = {
|
var position = {
|
||||||
@@ -54,10 +56,10 @@ module.exports = {
|
|||||||
|
|
||||||
var chevron = null;
|
var chevron = null;
|
||||||
if (props.left) {
|
if (props.left) {
|
||||||
chevron = <div className="mx_ContextualMenu_chevron_left" />
|
chevron = <div className="mx_ContextualMenu_chevron_left"></div>
|
||||||
position.left = props.left + 8;
|
position.left = props.left + 8;
|
||||||
} else {
|
} else {
|
||||||
chevron = <div className="mx_ContextualMenu_chevron_right" />
|
chevron = <div className="mx_ContextualMenu_chevron_right"></div>
|
||||||
position.right = props.right + 8;
|
position.right = props.right + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user