| 1318 |
alexandre_ |
1 |
/*
|
|
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
|
|
3 |
All Rights Reserved.
|
|
|
4 |
|
|
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
|
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
|
|
7 |
|
|
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
|
|
9 |
*/
|
|
|
10 |
|
| 1422 |
alexandre_ |
11 |
|
|
|
12 |
|
| 1318 |
alexandre_ |
13 |
dojo.provide("dojo.data.core.Result");
|
|
|
14 |
dojo.require("dojo.lang.declare");
|
|
|
15 |
dojo.require("dojo.experimental");
|
|
|
16 |
dojo.experimental("dojo.data.core.Result");
|
|
|
17 |
dojo.declare("dojo.data.core.Result", null, {initializer:function (keywordArgs, store) {
|
|
|
18 |
this.fromKwArgs(keywordArgs || {});
|
|
|
19 |
this.items = null;
|
|
|
20 |
this.resultMetadata = null;
|
|
|
21 |
this.length = -1;
|
|
|
22 |
this.store = store;
|
|
|
23 |
this._aborted = false;
|
|
|
24 |
this._abortFunc = null;
|
|
|
25 |
}, sync:true, abort:function () {
|
|
|
26 |
this._aborted = true;
|
|
|
27 |
if (this._abortFunc) {
|
|
|
28 |
this._abortFunc();
|
|
|
29 |
}
|
|
|
30 |
}, fromKwArgs:function (kwArgs) {
|
|
|
31 |
if (typeof kwArgs.saveResult == "undefined") {
|
|
|
32 |
this.saveResult = kwArgs.onnext ? false : true;
|
|
|
33 |
}
|
|
|
34 |
dojo.lang.mixin(this, kwArgs);
|
|
|
35 |
}});
|
|
|
36 |
|