Skip to content

Commit

Permalink
fix Object.assign error #87
Browse files Browse the repository at this point in the history
  • Loading branch information
pingan1927 committed Aug 13, 2016
1 parent 33abce5 commit 9df5234
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/tabs/index.web.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import classNames from 'classnames';
import assign from 'object-assign';
import RcTabs from 'rc-tabs';

export interface TabsProps {
Expand Down Expand Up @@ -39,7 +40,7 @@ export default class Tabs extends React.Component<TabsProps, any> {
const position = type !== 'tabbar' ? tabPosition : 'bottom';
const anim = (type === 'tabbar' || !animation) ? '' : animation;

const restProps = Object.assign({}, this.props);
const restProps = assign({}, this.props);
['className', 'prefixCls', 'type', 'animation', 'mode', 'tabPosition', 'children'].forEach(prop => {
if (restProps.hasOwnProperty(prop)) {
delete restProps[prop];
Expand Down

0 comments on commit 9df5234

Please sign in to comment.