From 94ad0ad8a257d47f30857d7ed4e49c1141db56e5 Mon Sep 17 00:00:00 2001 From: Alex Ardelean Date: Wed, 14 Aug 2013 14:58:10 +0300 Subject: [PATCH] Added a few lines of code to allow calling Selectivizr.init() to reparse the CSS after loading pages via AJAX. --- selectivizr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selectivizr.js b/selectivizr.js index 7077c57..c3a25c7 100755 --- a/selectivizr.js +++ b/selectivizr.js @@ -24,7 +24,7 @@ References: */ -(function(win) { +Selectivizr = (function(win) { // Determine IE version and stop execution if browser isn't IE. This // handles the script being loaded by non IE browsers because the @@ -560,4 +560,6 @@ References: addEvent(win,"load", init); } }; + + return {init: init}; })(this);