Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from kashif-umair/hotfix/fixed_file_name_split_bug

moved splittedFileName generation under file presence check
  • Loading branch information...
commit d09ebd6fc0ab1104558353f7b35368bb60ec993f 2 parents 779f564 + 28e9929
@kashif-umair authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 gist-embed.js
View
7 gist-embed.js
@@ -12,13 +12,20 @@ $(function(){
line,
data = {};
+<<<<<<< Updated upstream
id = $elem.attr('id') || '';
file = $elem.attr('data-file');
line = $elem.attr('data-line');
splittedFileName = file.split('.').join('-');
+=======
+ id = $elem.attr('id') || '';
+ file = $elem.attr('data-file');
+ line = $elem.attr('data-line');
+>>>>>>> Stashed changes
if(file){
data.file = file;
+ splittedFileName = file.split('.').join('-');
}
//if the id doesn't begin with 'gist-', then ignore the code block
Please sign in to comment.
Something went wrong with that request. Please try again.