Skip to content

Commit e832f44

Browse files
committed
Fix eclipsesource#92: Applied styleguide
Included Eugen's suggestions
1 parent 36858b3 commit e832f44

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

components/form/form-directive.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ class FormController {
8484

8585
services.add(dataProvider);
8686

87-
console.log("the ui schema is " + JSON.stringify(uiSchema))
88-
8987
this.elements = [this.RenderService.render(this.scope, uiSchema, services)];
9088
});
9189
}
@@ -164,7 +162,6 @@ class JsonFormsDirective implements ng.IDirective {
164162
ctrl.element = el;
165163
scope.$watchGroup(['data', 'uiSchema'], (newValue) => {
166164
if (angular.isDefined(newValue)){
167-
console.log("data changed");
168165
ctrl.init();
169166
}
170167
});

examples/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ angular.module('makeithappen', [
1919
});
2020
$routeProvider.when('/custom', {
2121
templateUrl: 'app/custom/custom.html',
22-
controller: 'MyController',
22+
controller: 'CustomController',
2323
controllerAs: 'vm'
2424
});
2525
$routeProvider.when('/defaultui', {

examples/app/custom/custom.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
angular.module('makeithappen').controller('MyController', function() {
3+
angular.module('makeithappen').controller('CustomController', function() {
44
var vm = this;
55
vm.schema = {
66
"type": "object",

examples/app/custom/custom.jsf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var app = angular.module('makeithappen');
22
app.run(['RenderService', function(RenderService) {
33

4-
function MyControl() {
4+
function CustomControl() {
55

66
return {
77
priority: 100,
@@ -17,5 +17,5 @@ app.run(['RenderService', function(RenderService) {
1717
}
1818
}
1919

20-
RenderService.register(new MyControl());
20+
RenderService.register(new CustomControl());
2121
}]);

0 commit comments

Comments
 (0)