raw/ace/assets/js/uncompressed/x-editable/bootstrap-editable.js
function(value) {
            this.$input.prop('checked', false);
            if($.isArray(value) && value.length) {
               this.$input.each(function(i, el) {
                   var $el = $(el);
                   // cannot use $.inArray as it performs strict comparison
                   $.each(value, function(j, val){
                       /*jslint eqeq: true*/
                       if($el.val() == val) {
                       /*jslint eqeq: false*/                           
                           $el.prop('checked', true);
                       }
                   });
               }); 
            }  
        }
function(value) {
            this.$input.prop('checked', false);
            if($.isArray(value) && value.length) {
               this.$input.each(function(i, el) {
                   var $el = $(el);
                   // cannot use $.inArray as it performs strict comparison
                   $.each(value, function(j, val){
                       /*jslint eqeq: true*/
                       if($el.val() == val) {
                       /*jslint eqeq: false*/                           
                           $el.prop('checked', true);
                       }
                   });
               }); 
            }  
        }
function ( value ) { this . $input . prop ( 'checked' , false ) ; if ( $ . isArray ( value ) && value . length ) { this . $input . each ( function ( i , el ) { var $el = $ ( el ) ; // cannot use $.inArray as it performs strict comparison $ . each ( value , function ( j , val ) { /*jslint eqeq: true*/ if ( $el . val ( ) == val ) { /*jslint eqeq: false*/ $el . prop ( 'checked' , true ) ; } } ) ; } ) ; } }
set checked on required checkboxes
set checked on required checkboxes