Merge pull request from powellzer/master

Check if select2 input exists before destroy
This commit is contained in:
Tim Uy 2015-11-11 08:12:50 -08:00
commit 0cf3b10e8e

@ -294,10 +294,12 @@ $(function(){
},
destroy: function() {
if(this.$input) {
if(this.$input.data('select2')) {
this.$input.select2('destroy');
}
}
}
});