removed useless code

This commit is contained in:
Jonathan Labreuille
2015-10-09 14:52:10 +02:00
parent ed9407a890
commit 34e75b9b13

View File

@@ -20,12 +20,6 @@ function(
jQuery('#'+this.props.field.id).select2() jQuery('#'+this.props.field.id).select2()
.on('change', this.handleChange); .on('change', this.handleChange);
}, },
componentDidUpdate: function() {
jQuery('#'+this.props.field.id).select2(
'val',
(this.props.item[this.props.field.name])
);
},
loadCachedItems: function() { loadCachedItems: function() {
if(typeof(window['mailpoet_'+this.props.field.endpoint]) !== 'undefined') { if(typeof(window['mailpoet_'+this.props.field.endpoint]) !== 'undefined') {
var items = window['mailpoet_'+this.props.field.endpoint]; var items = window['mailpoet_'+this.props.field.endpoint];