static/header.js
//callback when we get gist back, initiate setup of header and save panels
callback when we get gist back, initiate setup of header and save panels
callback when we get gist back initiate setup of header and save panels
function handle_gist(data, callback) {
    var user;
    var anon = {
        login: "anon",
        url: "",
        userid: -1
      };
    if(!data) {
      setup_header(user);
      setup_save(user, !!data);
    } else {
      header.gist = data;
      user = data.owner || data.user;
      if(!user) {
        user = anon;
      }
      setup_header(user, data.description);
      setup_save(user, !!data);
      callback(null, data);
    }
  }
function handle_gist ( data , callback ) { var user ; var anon = { login : "anon" , url : "" , userid : - 1 } ; if ( ! data ) { setup_header ( user ) ; setup_save ( user , ! ! data ) ; } else { header . gist = data ; user = data . owner || data . user ; if ( ! user ) { user = anon ; } setup_header ( user , data . description ) ; setup_save ( user , ! ! data ) ; callback ( null , data ) ; } }
callback when we get gist back, initiate setup of header and save panels
callback when we get gist back initiate setup of header and save panels
//get user information or set to anon if none. //user = anon; //send the data to the child frame