@@ -99,19 +99,16 @@ angular.module('neo4jApp.controllers')
99
99
Inspector .visible = ! Inspector .visible
100
100
101
101
$scope .selectArrowWidth = (item , size ) ->
102
- $scope .$emit ' close.contextMenu'
103
102
item .style = graphStyle .changeForSelector (item .style .selector , size)
104
103
105
104
$scope .selectCaption = (item , caption ) ->
106
- $scope .$emit ' close.contextMenu'
107
105
item .style = graphStyle .changeForSelector (item .style .selector , { caption : caption})
108
106
109
107
$scope .isSelectedCaption = (item , caption ) ->
110
108
grassProps = item .style .props
111
109
grassProps .caption is " #{ caption} " or (! grassProps .caption and caption in [" <id>" , " <type>" ])
112
110
113
111
$scope .selectScheme = (item , scheme ) ->
114
- $scope .$emit ' close.contextMenu'
115
112
item .style = graphStyle .changeForSelector (item .style .selector , angular .copy (scheme))
116
113
117
114
$scope .selectSize = (item , size ) ->
@@ -127,9 +124,4 @@ angular.module('neo4jApp.controllers')
127
124
width : nodeDisplaySizes[idx]
128
125
height : nodeDisplaySizes[idx]
129
126
130
- $scope .$watch (' style' , (oldValue , newValue ) ->
131
- unless oldValue is newValue or newValue is not null
132
- $scope .$emit ' close.contextMenu'
133
- )
134
-
135
127
]
0 commit comments