Change early return in js

This commit is contained in:
Robin Cornett
2016-08-05 13:09:31 -04:00
parent 21e2bb8624
commit e47b12bc47
+4 -3
View File
@@ -1,4 +1,4 @@
( function ( document, $, undefined ) {
;( function ( document, $, undefined ) {
'use strict';
var plugin = {};
@@ -51,9 +51,10 @@
$(document).ready(function () {
plugin.params = typeof BackStretchVars === 'undefined' ? '' : BackStretchVars;
if ( typeof plugin.params !== 'undefined' ) {
plugin.init();
if ( typeof plugin.params === 'undefined' ) {
return;
}
plugin.init();
});
} )( document, jQuery );