Files @ 01fa72ba1e5e
Branch filter:

Location: website/www/conservancy/static/js/jquery.outerhtml.js

keynote2k
remove spurious word "source".

bkuhn committing on behalf of Tony:

<tony> bkuhn: if you're making edits, please change "free and open
source society" to "free and open society". My Kallithea set up
is still giving me problems (even after I uploaded my SSH key).
I'll connect w/ Brett to fix next week.
/*
 * jQuery outerHTML
 *
 * Copyright (c) 2008 Ca-Phun Ung <caphun at yelotofu dot com>
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://yelotofu.com/labs/jquery/snippets/outerhtml/
 *
 * outerHTML is based on the outerHTML work done by Brandon Aaron
 * But adds the ability to replace an element.
 */

(function($) {
	$.fn.outerHTML = function(s) {
		return (s) 
			? this.before(s).remove() 
			: $('<p>').append(this.eq(0).clone()).html();
	}
})(jQuery);