root / trunk / web / dojo / dojox / data / S3Store.js @ 9
History | View | Annotate | Download (817 Bytes)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.data.S3Store"]){ |
9 |
dojo._hasResource["dojox.data.S3Store"]=true; |
10 |
dojo.provide("dojox.data.S3Store");
|
11 |
dojo.require("dojox.rpc.ProxiedPath");
|
12 |
dojo.require("dojox.data.JsonRestStore");
|
13 |
dojo.declare("dojox.data.S3Store",dojox.data.JsonRestStore,{_processResults:function(_1){ |
14 |
var _2=_1.getElementsByTagName("Key"); |
15 |
var _3=[];
|
16 |
var _4=this; |
17 |
for(var i=0;i<_2.length;i++){ |
18 |
var _5=_2[i];
|
19 |
var _6={_loadObject:(function(_7,_8){ |
20 |
return function(_9){ |
21 |
delete this._loadObject; |
22 |
_4.service(_7).addCallback(_9); |
23 |
}; |
24 |
})(_5.firstChild.nodeValue,_6)}; |
25 |
_3.push(_6); |
26 |
} |
27 |
return {totalCount:_3.length,items:_3}; |
28 |
}}); |
29 |
} |