removed useless code
This commit is contained in:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user