We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4826f5b commit 07455deCopy full SHA for 07455de
midnight.jquery.js
@@ -115,10 +115,10 @@
115
headers['default'] = {};
116
117
$sections.each(function(){
118
- if( typeof $(this).data('midnight') !== 'string' ) { return; }
+ var headerClass = $section.data('midnight');
119
120
- var headerClass = $(this).data('midnight');
121
if( typeof headerClass !== 'string' ){ return; }
+
122
headerClass = headerClass.trim();
123
124
if( headerClass === '' ){ return; }
@@ -406,4 +406,4 @@
406
407
};
408
409
-})(jQuery));
+})(jQuery));
0 commit comments