Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15619121
dom.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1023 B
Referenced Files
None
Subscribers
None
dom.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.dtl.render.dom"
]){
dojo
.
_hasResource
[
"dojox.dtl.render.dom"
]
=
true
;
dojo
.
provide
(
"dojox.dtl.render.dom"
);
dojo
.
require
(
"dojox.dtl.Context"
);
dojo
.
require
(
"dojox.dtl.dom"
);
dojox
.
dtl
.
render
.
dom
.
Render
=
function
(
_1
,
_2
){
this
.
_tpl
=
_2
;
this
.
domNode
=
dojo
.
byId
(
_1
);
};
dojo
.
extend
(
dojox
.
dtl
.
render
.
dom
.
Render
,{
setAttachPoint
:
function
(
_3
){
this
.
domNode
=
_3
;
},
render
:
function
(
_4
,
_5
,
_6
){
if
(
!
this
.
domNode
){
throw
new
Error
(
"You cannot use the Render object without specifying where you want to render it"
);
}
this
.
_tpl
=
_5
=
_5
||
this
.
_tpl
;
_6
=
_6
||
_5
.
getBuffer
();
_4
=
_4
||
new
dojox
.
dtl
.
Context
();
var
_7
=
_5
.
render
(
_4
,
_6
).
getParent
();
if
(
!
_7
){
throw
new
Error
(
"Rendered template does not have a root node"
);
}
if
(
this
.
domNode
!==
_7
){
this
.
domNode
.
parentNode
.
replaceChild
(
_7
,
this
.
domNode
);
this
.
domNode
=
_7
;
}
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 01:54 (11 h, 52 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26844
Default Alt Text
dom.js (1023 B)
Attached To
Mode
rZED Zed
Attached
Detach File
Event Timeline
Log In to Comment