Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F886004
DataStore.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
DataStore.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dojox.wire.ml.DataStore"
]){
dojo
.
_hasResource
[
"dojox.wire.ml.DataStore"
]
=
true
;
dojo
.
provide
(
"dojox.wire.ml.DataStore"
);
dojo
.
require
(
"dijit._Widget"
);
dojo
.
require
(
"dojox.wire._base"
);
dojo
.
declare
(
"dojox.wire.ml.DataStore"
,
dijit
.
_Widget
,{
storeClass
:
""
,
postCreate
:
function
(){
this
.
store
=
this
.
_createStore
();
},
_createStore
:
function
(){
if
(
!
this
.
storeClass
){
return
null
;
}
var
_1
=
dojox
.
wire
.
_getClass
(
this
.
storeClass
);
if
(
!
_1
){
return
null
;
}
var
_2
=
{};
var
_3
=
this
.
domNode
.
attributes
;
for
(
var
i
=
0
;
i
<
_3
.
length
;
i
++
){
var
a
=
_3
.
item
(
i
);
if
(
a
.
specified
&&!
this
[
a
.
nodeName
]){
_2
[
a
.
nodeName
]
=
a
.
nodeValue
;
}
}
return
new
_1
(
_2
);
},
getFeatures
:
function
(){
return
this
.
store
.
getFeatures
();
},
fetch
:
function
(
_4
){
return
this
.
store
.
fetch
(
_4
);
},
save
:
function
(
_5
){
this
.
store
.
save
(
_5
);
},
newItem
:
function
(
_6
){
return
this
.
store
.
newItem
(
_6
);
},
deleteItem
:
function
(
_7
){
return
this
.
store
.
deleteItem
(
_7
);
},
revert
:
function
(){
return
this
.
store
.
revert
();
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 6, 21:37 (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25144
Default Alt Text
DataStore.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment