app/assets/javascripts/thin_man.js in thin_man-0.11.7 vs app/assets/javascripts/thin_man.js in thin_man-0.11.8
- old
+ new
@@ -86,9 +86,11 @@
if(typeof data === 'string'){
this.insertHtml(data);
} else if(typeof data === 'object') {
if(typeof data.html != 'undefined'){
this.insertHtml(data.html)
+ } else {
+ this.target.empty()
}
if(typeof data.class_triggers != 'undefined'){
$.each(data.class_triggers, function(class_name, params){
try{
klass = eval(class_name);