aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/javascripts/octopress.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/javascripts/octopress.js b/source/javascripts/octopress.js
index 300d9c6a..a91d30e8 100644
--- a/source/javascripts/octopress.js
+++ b/source/javascripts/octopress.js
@@ -1,12 +1,7 @@
window.addEvent('domready', function() {
- addPreExpanders();
+ $$('div.highlight').each(addExpander);
});
-function addPreExpanders(){
- $$('div.highlight').each(function(div){
- addExpander(div);
- });
-}
function addExpander(div){
new Element('span',{
html: 'expand »',
@@ -29,6 +24,6 @@ function toggleExpander(){
html = 'expand »';
}
$$('div.highlight span.pre_expander').each(function(span){
- span.set('html',html);
+ span.set('html',html);
});
} \ No newline at end of file