diff --git a/extensions/mistral/static/mistral/js/controllers.js b/extensions/mistral/static/mistral/js/controllers.js
index 6600339..7a32a4c 100644
--- a/extensions/mistral/static/mistral/js/controllers.js
+++ b/extensions/mistral/static/mistral/js/controllers.js
@@ -5,9 +5,7 @@
(function() {
angular.module('hz')
- .controller('workbookCtrl', function($scope, idGenerator) {
- $scope.idGenerator = idGenerator;
-
+ .controller('workbookCtrl', function($scope) {
$scope.data = {
actions: [{
id: 'action1',
diff --git a/extensions/mistral/static/mistral/js/directives.js b/extensions/mistral/static/mistral/js/directives.js
index c32cbb1..7dd70bd 100644
--- a/extensions/mistral/static/mistral/js/directives.js
+++ b/extensions/mistral/static/mistral/js/directives.js
@@ -60,14 +60,7 @@
}
})
- .directive('action', function() {
- return {
- restrict: 'E',
- scope: {}
- }
- })
-
- .directive('collapsiblePanel', function($parse, idGenerator, defaultSetter) {
+ .directive('collapsiblePanel', function($parse, defaultSetter) {
return {
restrict: 'E',
templateUrl: '/static/mistral/js/angular-templates/collapsible-panel.html',
@@ -80,7 +73,6 @@
defaultSetter(attrs, 'removable', false);
return {
post: function(scope, element, attrs) {
- scope.id = idGenerator();
disableClickDefaultBehaviour(element);
}
}
@@ -88,7 +80,7 @@
}
})
- .directive('collapsibleGroup', function($parse, idGenerator, defaultSetter) {
+ .directive('collapsibleGroup', function($parse, defaultSetter) {
return {
restrict: 'E',
templateUrl: '/static/mistral/js/angular-templates/collapsible-group.html',
@@ -103,7 +95,6 @@
defaultSetter(attrs, 'additive', false);
return {
post: function(scope, element) {
- scope.id = idGenerator();
disableClickDefaultBehaviour(element);
}
}
@@ -111,12 +102,11 @@
}
})
- .directive('typedField', function($http, $templateCache, $compile, idGenerator) {
+ .directive('typedField', function($http, $templateCache, $compile) {
return {
restrict: 'E',
scope: true,
link: function(scope, element, attrs) {
- scope.id = idGenerator();
$http.get(
'/static/mistral/js/angular-templates/fields/' + scope.spec.type + '.html',
{cache: $templateCache}).success(function(templateContent) {
@@ -126,5 +116,4 @@
}
})
-
})();
diff --git a/extensions/mistral/static/mistral/js/services.js b/extensions/mistral/static/mistral/js/services.js
index 2e982b1..8ec5cc6 100644
--- a/extensions/mistral/static/mistral/js/services.js
+++ b/extensions/mistral/static/mistral/js/services.js
@@ -4,13 +4,6 @@
(function() {
angular.module('hz')
- .factory('idGenerator', function() {
- var id = 0;
- return function() {
- id++;
- return 'elem-id-'+id;
- };
- })
.factory('defaultSetter', function($parse) {
return function(attrs, attrName, defaultValue) {