Rename permitted -> enabled and add to more actions

This commit is contained in:
John Firebaugh
2013-01-23 15:05:00 -05:00
parent 671e138fcd
commit 72618574f3
7 changed files with 32 additions and 14 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
//
iD.actions.UnjoinNode = function(nodeId, newNodeId) {
var action = function(graph) {
if (!action.permitted(graph))
if (!action.enabled(graph))
return graph;
var node = graph.entity(nodeId);
@@ -29,7 +29,7 @@ iD.actions.UnjoinNode = function(nodeId, newNodeId) {
return graph;
};
action.permitted = function(graph) {
action.enabled = function(graph) {
return graph.parentWays(graph.entity(nodeId)).length >= 2;
};