From 99b00b857cac3d72e2a309ad6fb8123447b341db Mon Sep 17 00:00:00 2001 From: Dmitry Semenov Date: Fri, 15 Nov 2013 11:44:25 +0200 Subject: [PATCH] popup instance object is now available even before the first $.fn.magnificPopup call --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 6dfb0ce6..09246065 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -170,7 +170,7 @@ module.exports = function(grunt) { newContents += grunt.file.read( basePath + name + '.js' ) + '\n'; newContents += "\n/*>>"+name+"*/\n"; }); - newContents+= "})(window.jQuery || window.Zepto);"; + newContents+= " _checkInstance(); })(window.jQuery || window.Zepto);"; grunt.file.write( this.data.dest, newContents ); });