changelog

This commit is contained in:
vitalets 2013-02-24 11:16:04 +04:00
parent b620b10f12
commit 1765565f31
2 changed files with 3 additions and 0 deletions

@ -5,6 +5,7 @@ X-editable changelog
Version 1.4.2 wip
----------------------------
[bug #137] fix empty class for delegated element (vitalets)
[enh #121] add support of momentjs 2.0.0 in combodate (vitalets)

@ -115,6 +115,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
this.$element.on(this.options.toggle + '.editable', selector, $.proxy(function(e){
var $target = $(e.target);
if(!$target.data('editable')) {
//if delegated element initially empty, we need to clear it's text (that was manually set to `empty` by user)
//see https://github.com/vitalets/x-editable/issues/137
if($target.hasClass(this.options.emptyclass)) {
$target.empty();
}