Browse code

jsHint'ed octopress.js

Frederic Hemberger authored on 26/09/2011 at 12:41:39
Showing 1 changed files
... ...
@@ -6,7 +6,7 @@ function getNav() {
6 6
     mobileNav.children('select').append('<option value="'+link.href+'">&bull; '+link.text+'</option>');
7 7
   });
8 8
   mobileNav.children('select').bind('change', function(event) {
9
-    if (event.target.value) window.location.href = event.target.value;
9
+    if (event.target.value) { window.location.href = event.target.value; }
10 10
   });
11 11
 }
12 12
 
... ...
@@ -52,7 +52,7 @@ function testFeatures() {
52 52
 }
53 53
 
54 54
 function addCodeLineNumbers() {
55
-  if (navigator.appName == 'Microsoft Internet Explorer') { return; }
55
+  if (navigator.appName === 'Microsoft Internet Explorer') { return; }
56 56
   $('div.gist-highlight').each(function(code) {
57 57
     var tableStart = '<table><tbody><tr><td class="gutter">',
58 58
         lineNumbers = '<pre class="line-numbers">',
... ...
@@ -72,7 +72,7 @@ function flashVideoFallback(){
72 72
       flashplayerskin = "/assets/jwplayer/glow/glow.xml";
73 73
   $('video').each(function(video){
74 74
     video = $(video);
75
-    if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") != -1){
75
+    if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") !== -1){
76 76
       video.children('source[src$=mp4]').first().map(function(source){
77 77
         var src = $(source).attr('src'),
78 78
             id = 'video_'+Math.round(1 + Math.random()*(100000)),