Advertisement
kurtpayne

plupload.silverlight.js Fix

Aug 29th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.55 KB | None | 0 0
  1. --- plupload.silverlight.js Mon Aug 29 12:03:30 2011
  2. +++ plupload.silverlight-fix.js Mon Aug 29 12:10:17 2011
  3. @@ -16,6 +16,11 @@
  4.  
  5.     function jsonSerialize(obj) {
  6.         var value, type = typeof obj, isArray, i, key;
  7. +      
  8. +       // Treat undefined as null
  9. +       if (obj === undef || obj === null) {
  10. +           return 'null';
  11. +       }
  12.  
  13.         // Encode strings
  14.         if (type === 'string') {
  15. @@ -64,11 +69,6 @@
  16.             }
  17.  
  18.             return value;
  19. -       }
  20. -
  21. -       // Treat undefined as null
  22. -       if (obj === undef) {
  23. -           return 'null';
  24.         }
  25.  
  26.         // Convert all other types to string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement