Skip to content

Commit 63c1d44

Browse files
committed
Merge pull request #14 from markmarijnissen/patch-1
Bugfix - update type when updating value.
2 parents 6128cd3 + 7be6e00 commit 63c1d44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/json-formatter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ angular.module('jsonFormatter', ['RecursionHelper'])
9191
};
9292

9393
scope.parseValue = function (value){
94+
scope.type = typeof scope.json;
9495
if (scope.type === 'null') {
9596
return 'null';
9697
}

0 commit comments

Comments
 (0)