diff --git a/themes/learn2/js/.learn.js.swp b/themes/learn2/js/.learn.js.swp index e711f6f..5aaa345 100644 Binary files a/themes/learn2/js/.learn.js.swp and b/themes/learn2/js/.learn.js.swp differ diff --git a/themes/learn2/js/learn.js b/themes/learn2/js/learn.js index ef0780a..8c92fe0 100644 --- a/themes/learn2/js/learn.js +++ b/themes/learn2/js/learn.js @@ -178,7 +178,7 @@ jQuery(document).ready(function() { if (!clipInit) { var text, clip = new Clipboard('.copy-to-clipboard', { text: function(trigger) { - text = $(trigger).prev('code').text; + text = $(trigger).prev('code').text(); // NOTE custom stuff to strip # or $ from the beginning of my inline command blocks return text.replace(/^[\$\s\#\$]{1,4}/gm, ''); // original code