Browse Source

+ choice between 'state' or 'props'

react
RubaXa 10 years ago
parent
commit
bfddd35dd4
  1. 5
      react-sortable-mixin.js

5
react-sortable-mixin.js vendored

@ -44,7 +44,10 @@
function _getModelItems(component) {
return component.state[_getModelName(component)].slice();
var name = _getModelName(component),
items = component.state && component.state[name] || component.props[name];
return items.slice();
}

Loading…
Cancel
Save