Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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