Skip to content

Commit

Permalink
Minor optimization tweaks to Slide out tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Oct 24, 2012
1 parent 6477b36 commit a6bb39f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/js/workers/slideout.js
Expand Up @@ -18,7 +18,9 @@
opened: false,
_exec: function (elm) {
var borderWidth = 10,
closeLink = pe.dic.get('%hide') + '<span class="wb-invisible">' + pe.dic.get('%table-contents') + '</span>',
tocText = pe.dic.get('%table-contents'),
hideText = pe.dic.get('%hide'),
closeLink = hideText + '<span class="wb-invisible">' + tocText + '</span>',
focusOutlineAllowance = 2,
opened = false,
reposition,
Expand All @@ -34,12 +36,10 @@
keyhandler,
tocLinks,
documentToggle,
cssTest,
opts,
ie7 = pe.ie > 0 && pe.ie < 8,
$wbcorein = $('#wb-core-in'),
imagesDir = pe.add.liblocation + 'images/slideout/',
tocText = pe.dic.get('%table-contents');
imagesDir = pe.add.liblocation + 'images/slideout/';

$.metadata.setType('attr', 'data-wet-boew');
opts = {
Expand All @@ -53,7 +53,7 @@
src: imagesDir + pe.dic.get('%hide-image'),
height: 147,
width: 30,
alt: pe.dic.get('%hide') + tocText
alt: hideText + tocText
}
};
$.extend(opts, elm.metadata());
Expand Down

0 comments on commit a6bb39f

Please sign in to comment.