From bb6fb0c2539d60ae72c931ab2e43c63fdac132f3 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 30 Aug 2012 11:18:02 -0300 Subject: [PATCH] pathName is undefined when not found instead of 0 --- .../frontend/public/gollum/livepreview/js/livepreview.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js index 87f27923..911953d8 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js @@ -74,10 +74,6 @@ var create = $.key( 'create' ); var pageName = $.key( 'page' ); var pathName = $.key( 'path' ); -if ( pathName === 0 ) { - pathName = undefined; -} - defaultCommitMessage = function() { var msg = pageName + ' (markdown)';