Skip to content

Commit

Permalink
Ajusting the treatment of values when has a value that is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-morais committed Feb 23, 2015
1 parent 1daad2b commit f2d8945
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions component/directives/angular-json-pretty-print-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
if(typeof value === 'string'){
return _createString(value, styles);
}
if(value === null){
return _createString('null', styles);
}
else if(Array.isArray(value)){
return _createArray(value, styles, blanks, plusId);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/angular-json-pretty-print.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ angular.module('JsonPrettyPrint').run(['$templateCache', function($templateCache
if(typeof value === 'string'){
return _createString(value, styles);
}
if(value === null){
return _createString('null', styles);
}
else if(Array.isArray(value)){
return _createArray(value, styles, blanks, plusId);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-json-pretty-print.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2d8945

Please sign in to comment.