/** * .. function:: cw.utils.deprecatedFunction(msg, function) * * jQUery flattens arrays returned by the mapping function: :: * * >>> y = ['a:b:c', 'd:e'] * >>> jQuery.map(y, function(y) { return y.split(':');}) * ["a", "b", "c", "d", "e"] * // where one would expect: * [ ["a", "b", "c"], ["d", "e"] ] */// XXX why not the same argument order as $.map and forEach ?functionmap(func,array){varresult=[];for(vari=0,length=array.length;i<length;i++){result.push(func(array[i]));}returnresult;}// skm cube still uses thisgetNodeAttribute=cw.utils.deprecatedFunction('[3.9] getNodeAttribute(node, attr) is deprecated, use $(node).attr(attr)',function(node,attribute){return$(node).attr(attribute);});