##// END OF EJS Templates
tests moved under src/ folder...
tests moved under src/ folder removed requirejs dependency from the main source set

File last commit:

r49:1a91da7b15f7 di-typescript
r50:7a4fac383b10 di-typescript
Show More
StatefullStoreAdapter.js
18 lines | 585 B | application/javascript | JavascriptLexer
/ src / main / js / data / StatefullStoreAdapter.js
define(["dojo/_base/declare", "dojo/_base/array", "../safe", "./StoreAdapter"], function(declare, array, safe ,AdapterStore){
return declare([AdapterStore], {
_attrs : null,
constructor : function(opts) {
safe.argumentNotEmptyArray(opts.attrs, "opts.attrs");
this._attrs = opts.attrs;
},
mapItem : function(item) {
var result = {};
array.forEach(this._attrs, function(p) {
result[p] = item.get(p);
});
return result;
}
});
});