Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (typeof (notebook) === "string") {
  2.             console.warn("[notebook_model.ts] (╯°□°)╯︵ ┻━┻ :: Apparently Notebook has been serialized twice, deserializing a second time !");
  3.             // here we need to cast notebook to <any> as otherwise compiler complain
  4.             // that string/ notebook cannot be cast to each other.
  5.             notebook = JSON.parse(notebook);
  6.             console.warn("[notebook_model.ts] Double desirializing went ok.");
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement