/usr/share/javascript/dojo/store/util/QueryResults.js is in libjs-dojo-core 1.6.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojo.store.util.QueryResults"]){
dojo._hasResource["dojo.store.util.QueryResults"]=true;
dojo.provide("dojo.store.util.QueryResults");
dojo.getObject("store.util",true,dojo);
dojo.store.util.QueryResults=function(_1){
if(!_1){
return _1;
}
if(_1.then){
_1=dojo.delegate(_1);
}
function _2(_3){
if(!_1[_3]){
_1[_3]=function(){
var _4=arguments;
return dojo.when(_1,function(_5){
Array.prototype.unshift.call(_4,_5);
return dojo.store.util.QueryResults(dojo[_3].apply(dojo,_4));
});
};
}
};
_2("forEach");
_2("filter");
_2("map");
if(!_1.total){
_1.total=dojo.when(_1,function(_6){
return _6.length;
});
}
return _1;
};
}
|