Skip to content

Commit bb1685b

Browse files
Merge pull request Aerolab#9 from hlfcoding/patch-4
Optimise header setup
2 parents 9b4891b + 07455de commit bb1685b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

midnight.jquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@
115115
headers['default'] = {};
116116

117117
$sections.each(function(){
118-
if( typeof $(this).data('midnight') !== 'string' ) { return; }
118+
var headerClass = $section.data('midnight');
119119

120-
var headerClass = $(this).data('midnight');
121120
if( typeof headerClass !== 'string' ){ return; }
121+
122122
headerClass = headerClass.trim();
123123

124124
if( headerClass === '' ){ return; }

0 commit comments

Comments
 (0)