self
This commit is contained in:
parent
a4e2137463
commit
6b66009c44
@ -16,8 +16,8 @@ pub struct Context{
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Context{
|
impl Context{
|
||||||
pub const fn new(dom:WeakDom)->Context{
|
pub const fn new(dom:WeakDom)->Self{
|
||||||
Context{dom}
|
Self{dom}
|
||||||
}
|
}
|
||||||
pub fn script_singleton(source:String)->(Context,crate::runner::instance::Script){
|
pub fn script_singleton(source:String)->(Context,crate::runner::instance::Script){
|
||||||
let dom=WeakDom::new(
|
let dom=WeakDom::new(
|
||||||
|
Loading…
Reference in New Issue
Block a user