summaryrefslogtreecommitdiff
path: root/public/vendor/gist-embed.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-05-15 12:58:13 +0800
committerWu Cheng-Han2015-05-15 12:58:13 +0800
commit4e64583a0b6175d2c9a6729ffde1472dd55d389c (patch)
tree75253f2425f2e4f5906ed4fd30eca29a906ee47a /public/vendor/gist-embed.js
parent2d36d7ce84c636faac17cef3d3a7c22568df38fe (diff)
Marked as 0.2.8
Diffstat (limited to 'public/vendor/gist-embed.js')
-rw-r--r--public/vendor/gist-embed.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/vendor/gist-embed.js b/public/vendor/gist-embed.js
index 34a9c3b0..a1e923b7 100644
--- a/public/vendor/gist-embed.js
+++ b/public/vendor/gist-embed.js
@@ -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();
}
});