diff --git a/vkbeautify.js b/vkbeautify.js index 13cee3a..121bfa5 100644 --- a/vkbeautify.js +++ b/vkbeautify.js @@ -45,7 +45,7 @@ * */ -(function() { +var vkbeautify = (function() { function createShiftArr(step) { @@ -352,7 +352,9 @@ vkbeautify.prototype.sqlmin = function(text) { return text.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")"); } -window.vkbeautify = new vkbeautify(); +vkbeautify = new vkbeautify(); + +return vkbeautify; })();