diff --git a/.themes/classic/source/javascripts/github.js b/.themes/classic/source/javascripts/github.js index 623d493fdb..01877435dc 100644 --- a/.themes/classic/source/javascripts/github.js +++ b/.themes/classic/source/javascripts/github.js @@ -1,43 +1,39 @@ -github = (function(){ - function render(target, repos){ - var i = 0, fragment = '', t = $(target)[0]; +var github = (function(){ + function render(target, repos){ + var i = 0, fragment = '', t = $(target)[0]; - for(i = 0; i < repos.length; i++) - fragment += '
'+repos[i].description+'
'+repos[i].description+'
',
lineNumbers = '',
@@ -72,7 +72,7 @@ function flashVideoFallback(){
flashplayerskin = "/assets/jwplayer/glow/glow.xml";
$('video').each(function(video){
video = $(video);
- if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") != -1){
+ if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") !== -1){
video.children('source[src$=mp4]').first().map(function(source){
var src = $(source).attr('src'),
id = 'video_'+Math.round(1 + Math.random()*(100000)),
diff --git a/plugins/image_tag.rb b/plugins/image_tag.rb
index 20595cb9c0..4567000707 100644
--- a/plugins/image_tag.rb
+++ b/plugins/image_tag.rb
@@ -30,9 +30,9 @@ module Jekyll
@img['title'] = title
@img['alt'] = alt
else
- @img['alt'] = @img['title'].gsub!(/"/, '"')
+ @img['alt'] = @img['title'].gsub!(/"/, '"') if @img['title']
end
- @img['class'].gsub!(/"/, '')
+ @img['class'].gsub!(/"/, '') if @img['class']
end
super
end
|