call disable before destroy to clear emptytext, fixes

This commit is contained in:
vitalets
2013-04-23 10:35:35 +04:00
parent 25bf2a360f
commit e97783378a
2 changed files with 9 additions and 4 deletions
src/element
test/unit

@ -383,6 +383,7 @@ $(function () {
e.click();
var p = tip(e);
ok(p.is(':visible'), 'container visible');
equal(e.text(), 'Empty', 'emptytext shown');
e.editable('destroy');
@ -392,9 +393,12 @@ $(function () {
ok(!e.hasClass('editable'), 'editable class removed');
ok(!e.hasClass('editable-click'), 'editable-click class removed');
equal(e.text(), '', 'emptytext removed');
e.click();
});
});