Logic error. Fixes #1692

This commit is contained in:
Samuel Georges 2016-01-19 21:03:03 +11:00
parent 94cbe93e8c
commit 205d122dce
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
if (this.options.triggerCondition.indexOf('value') == 0) {
var match = this.options.triggerCondition.match(/[^[\]]+(?=])/g)
this.triggerCondition = 'value'
this.triggerConditionValue = (match) ? match : ""
this.triggerConditionValue = (match) ? match : [""]
}
this.triggerParent = this.options.triggerClosestParent !== undefined

View File

@ -2891,7 +2891,7 @@ throw new Error('Trigger action is not specified.')
this.triggerCondition=this.options.triggerCondition
if(this.options.triggerCondition.indexOf('value')==0){var match=this.options.triggerCondition.match(/[^[\]]+(?=])/g)
this.triggerCondition='value'
this.triggerConditionValue=(match)?match:""}
this.triggerConditionValue=(match)?match:[""]}
this.triggerParent=this.options.triggerClosestParent!==undefined?$el.closest(this.options.triggerClosestParent):undefined
if(this.triggerCondition=='checked'||this.triggerCondition=='unchecked'||this.triggerCondition=='value'){$(document).on('change',this.options.trigger,$.proxy(this.onConditionChanged,this))}
var self=this