web/data/cubicweb.compat.js
changeset 12 95bc1d15349b
parent 0 b97547f5f1fa
child 226 26eb9d72e722
equal deleted inserted replaced
11:db9c539e0b1b 12:95bc1d15349b
    47 
    47 
    48 function removeElementClass(node, klass) {
    48 function removeElementClass(node, klass) {
    49     jQuery(node).removeClass(klass);
    49     jQuery(node).removeClass(klass);
    50 }
    50 }
    51 
    51 
    52 hasElementClass = jQuery.className.has
    52 hasElementClass = jQuery.className.has;
    53 
    53 
    54 
    54 
    55 function partial(func) {
    55 function partial(func) {
    56     var args = sliceList(arguments, 1);
    56     var args = sliceList(arguments, 1);
    57     return function() {
    57     return function() {
    58 	return func.apply(null, merge(args, arguments));
    58 	return func.apply(null, merge(args, arguments));
    59     }
    59     };
    60 }
    60 }
    61 
    61 
    62 
    62 
    63 function log() {
    63 function log() {
    64     // XXX dummy implementation
    64     // XXX dummy implementation