Marked as 0.2.8

This commit is contained in:
Wu Cheng-Han 2015-05-15 12:58:13 +08:00
parent 2d36d7ce84
commit 4e64583a0b
96 changed files with 3281 additions and 22102 deletions

View file

@ -25,7 +25,7 @@
return lineNumbers;
}
$.fn.gist = function() {
$.fn.gist = function(callback) {
return this.each(function() {
var $elem = $(this),
id,
@ -165,6 +165,10 @@
},
error: function(jqXHR, textStatus) {
$elem.html('Failed loading gist ' + url + ': ' + textStatus);
},
complete: function() {
if(callback)
callback();
}
});