Skip to content

Instantly share code, notes, and snippets.

@protocool
protocool / gist:948666
Created April 29, 2011 17:34
A gist that shows how I'm embedding gists into Propane. Probably crappy but at least it feels a bit meta...
if (displayExpandedGists) {
Campfire.GistExpander = Class.create({
initialize: function(chat) {
this.chat = chat;
var messages = this.chat.transcript.messages;
for (var i = 0; i < messages.length; i++) {
this.detectGistURL(messages[i]);
}
},