tbouron commented on a change in pull request #125: Fix errors around locations 
in composer
URL: https://github.com/apache/brooklyn-ui/pull/125#discussion_r260330030
 
 

 ##########
 File path: 
ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.directive.js
 ##########
 @@ -254,6 +254,9 @@ export function specEditorDirective($rootScope, 
$templateCache, $injector, $sani
         }
         scope.nonempty = (o) => o && Object.keys(o).length;
         scope.defined = specEditor.defined = (o) => (typeof o !== 'undefined');
+        specEditor.isInstance = (x, type) => (typeof x === type);
+        specEditor.json = x => JSON.stringify(x, null, 2);
 
 Review comment:
   No need for this, there is a pipe called `json` that you can use like this 
`{{ data | json }}`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to