fix(buffer) copy, or cut, after cut, do not prevent previous cutting

This commit is contained in:
coderaiser 2014-10-01 11:12:59 -04:00
parent e36578530e
commit aa2a0a6a57

View file

@ -40,9 +40,10 @@ var Util, DOM;
}
function rmCutClass() {
var files = DOM.getActiveFiles();
var files = DOM.getByClassAll(CLASS),
array = Util.slice(files);
files.forEach(function(element) {
array.forEach(function(element) {
DOM.removeClass(element, CLASS);
});
}
@ -70,6 +71,8 @@ var Util, DOM;
names = getNames(),
from = Info.dirPath;
clear();
Storage.remove(CUT)
.set(COPY, {
from : from,
@ -82,9 +85,10 @@ var Util, DOM;
names = getNames(),
from = Info.dirPath;
clear();
addCutClass();
Storage.remove(COPY)
Storage
.set(CUT, {
from : from,
names: names