update jquery attr into prop method for checked and disabled properties

This commit is contained in:
Florian BLOUET
2015-11-25 16:40:45 +01:00
parent 454f9d4db0
commit 5d2735cd0a
18 changed files with 78 additions and 73 deletions

View File

@@ -35,10 +35,8 @@
this.$container.data('selectionnable', this);
this.$container.addClass('selectionnable');
jQuery(this.options.selector, this.$container)
.on('click', function (event) {
this.$container
.on('click', this.options.selector, function(event) {
if (typeof $this.options.selectStart === 'function') {
$this.options.selectStart(jQuery.extend(jQuery.Event('selectStart'), event), $this);
}