var Gisted = (function($, undefined) {
    var gist = function(gist_id) {
        var gistxhr = $.getJSON('/' + gist_id + '/content')
            .done(function(data, textStatus, xhr) {

                var author = data['owner']['login'];
                var url = data['owner']['html_url'];
                var $authorLink = $("#author-link");
                $authorLink.text(author).attr('href', url);

                var description = data['description'];
                if (description) {
                    $("#description").text(description);
                } else {
                    $("#description").text('');
                }
                var files = data['files'];
                var keys = Object.keys(files);
                var empty = true;
                for (var i=0; i<keys.length; i++) {
                    var file = files[keys[i]];
                    if (file['rendered']) {
                        empty = false;
                        var filediv = $('<article>')
                            .attr('class', 'file')
                            .attr('data-filename', file['filename']);
                        filediv.html("<h1>" + file['filename'] + "</h1>" + file['rendered']);
                        $('#gistbody').append(filediv);
                    }
                }
                if (empty) {
                    apologize("No Content Found");
                }

                triggerLoadEmbeddedGists();
            })
            .fail(function(xhr, status, error) {
                if (xhr.status == 404) {
                    apologize("No Content Found");
                } else {
                    apologize("Unable to Fetch Gist");
                }
            })
            .always(function() {
                $("#description").removeClass("loading");
                $(".content>footer").fadeIn();
            });
    };
    var apologize = function(errorText) {
        $("#description").text(errorText);
        var apology = $('<p>').attr('class', 'apology').text("Quite flummoxed. Terribly sorry.");
        $('#gistbody').append(apology);
    };
    return {
        gist: gist
    };
})(jQuery);

@@ -180,16 +180,106 @@
 xhr) %7B%0A%0A
+                if(typeof(data%5B'owner'%5D) !== 'undefined' && data%5B'owner'%5D !== null) %7B%0A    
         
@@ -335,24 +335,28 @@
             
+    
 var url = da
@@ -376,24 +376,28 @@
 html_url'%5D;%0A
+    
             
@@ -453,16 +453,20 @@
         
+    
 $authorL
@@ -500,16 +500,34 @@
 ', url);
+%0A                %7D
 %0A%0A      

Fix anonymous gists not being displayed