fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smartxml: Don't preprare for undo if it's obvious it will never come
[fnpeditor.git]
/
src
/
wlxml
/
extensions
/
list
/
list.js
diff --git
a/src/wlxml/extensions/list/list.js
b/src/wlxml/extensions/list/list.js
index
75b5336
..
02fe08d
100644
(file)
--- a/
src/wlxml/extensions/list/list.js
+++ b/
src/wlxml/extensions/list/list.js
@@
-65,10
+65,10
@@
extension.document.transformations.createList = {
});
},
getChangeRoot: function() {
});
},
getChangeRoot: function() {
- return this.args.node1.parent();
+ return this.args
[0]
.node1.parent();
},
isAllowed: function() {
},
isAllowed: function() {
- return this.args
.node1.parent().sameNode(this.args
.node2.parent());
+ return this.args
[0].node1.parent().sameNode(this.args[0]
.node2.parent());
}
};
}
};
@@
-135,13
+135,13
@@
extension.document.transformations.extractItems = {
reference.after(toAdd);
}
if(!params.merge && listIsNested) {
reference.after(toAdd);
}
if(!params.merge && listIsNested) {
- return this.
transform('extractItems',
{item1: extractedItems[0], item2: extractedItems[extractedItems.length-1]});
+ return this.
extractItems(
{item1: extractedItems[0], item2: extractedItems[extractedItems.length-1]});
}
return true;
},
isAllowed: function() {
}
return true;
},
isAllowed: function() {
- var parent = this.args.nodel1.parent();
- return parent.is('list') && parent.sameNode(this.args.node2.parent());
+ var parent = this.args
[0]
.nodel1.parent();
+ return parent.is('list') && parent.sameNode(this.args
[0]
.node2.parent());
}
};
}
};