From 35b2f8ad480a1b7cc80a6bfecbdcd36c9a9ba25d Mon Sep 17 00:00:00 2001 From: a-t Date: Thu, 10 Sep 2015 17:19:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=B8=20=D0=B8=D0=BD=D0=B8=D1=86=D0=B8?= =?UTF-8?q?=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BF=D0=BB?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jquery.formstyler.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jquery.formstyler.js b/jquery.formstyler.js index fba15c3..39b14f0 100644 --- a/jquery.formstyler.js +++ b/jquery.formstyler.js @@ -1012,7 +1012,7 @@ $.fn[pluginName] = function(options) { var args = arguments; if (options === undefined || typeof options === 'object') { - return this.each(function() { + this.each(function() { if (!$.data(this, '_' + pluginName)) { $.data(this, '_' + pluginName, new Plugin(this, options)); } @@ -1023,6 +1023,7 @@ var opt = $(this[0]).data('_' + pluginName); if (opt) opt.options.onFormStyled.call(); }); + return this; } else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') { var returns; this.each(function() { @@ -1057,4 +1058,4 @@ } onDocumentClick.registered = false; -})); \ No newline at end of file +}));