code format tweak

This commit is contained in:
Hakim El Hattab 2014-04-06 10:18:38 +02:00
parent 2eb3d082ce
commit c87d7db930

View file

@ -219,10 +219,8 @@
xhr.onreadystatechange = function() { xhr.onreadystatechange = function() {
if( xhr.readyState === 4 ) { if( xhr.readyState === 4 ) {
if ( // file protocol yields status code 0 (useful for local debug, mobile applications etc.)
(xhr.status >= 200 && xhr.status < 300) || if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) {
xhr.status === 0 // file protocol yields status code 0 (useful for local debug, mobile applications etc.)
) {
section.outerHTML = slidify( xhr.responseText, { section.outerHTML = slidify( xhr.responseText, {
separator: section.getAttribute( 'data-separator' ), separator: section.getAttribute( 'data-separator' ),