Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
11
dojo.provide("dojo.data.core.Result");
12
dojo.require("dojo.lang.declare");
13
dojo.require("dojo.experimental");
14
dojo.experimental("dojo.data.core.Result");
15
dojo.declare("dojo.data.core.Result", null, {initializer:function (keywordArgs, store) {
16
	this.fromKwArgs(keywordArgs || {});
17
	this.items = null;
18
	this.resultMetadata = null;
19
	this.length = -1;
20
	this.store = store;
21
	this._aborted = false;
22
	this._abortFunc = null;
23
}, sync:true, abort:function () {
24
	this._aborted = true;
25
	if (this._abortFunc) {
26
		this._abortFunc();
27
	}
28
}, fromKwArgs:function (kwArgs) {
29
	if (typeof kwArgs.saveResult == "undefined") {
30
		this.saveResult = kwArgs.onnext ? false : true;
31
	}
32
	dojo.lang.mixin(this, kwArgs);
33
}});
34