From 9dc5426da7c597edc1d0e5fabc13979ba443ed00 Mon Sep 17 00:00:00 2001 From: raydao Date: Mon, 26 Jun 2017 17:14:09 +0800 Subject: [PATCH] Update jquery-check-all.js add function callback by options container --- jquery-check-all.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery-check-all.js b/jquery-check-all.js index a4fdf8e..984bb69 100644 --- a/jquery-check-all.js +++ b/jquery-check-all.js @@ -10,6 +10,7 @@ function checkAll(element, options) { this.$el = $(element); this.options = $.extend({}, defaults, this.$el.data(), options) ; + if ($.isFunction(this.options.container)) this.options.container = this.options.container.call(element); // support callback this.init(); }