Skip to content

Commit 72ad5d6

Browse files
committed
Performance fix (Issue 48)
* Patch by indastria, Jun 15, 2011
1 parent 420b0f8 commit 72ad5d6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/jquery.json.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343
return JSON.stringify( o );
4444
}
4545

46-
var type = typeof o;
47-
4846
if ( o === null ) {
4947
return 'null';
5048
}
49+
50+
var type = typeof o;
51+
5152
if ( type === 'undefined' ) {
5253
return undefined;
5354
}

0 commit comments

Comments
 (0)