mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 10:01:39 +00:00
some refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d17981f90f
commit
9dd349d064
@ -1856,7 +1856,7 @@ object.Constructor('pWikiPageElement', Page, {
|
|||||||
// events...
|
// events...
|
||||||
//
|
//
|
||||||
__pWikiLoadedDOMEvent: new Event('pwikiloaded'),
|
__pWikiLoadedDOMEvent: new Event('pwikiloaded'),
|
||||||
onLoad: types.event.Event('onLoad', function(){
|
onLoad: types.event.PureEvent('onLoad', function(){
|
||||||
this.dom.dispatchEvent(this.__pWikiLoadedDOMEvent) }),
|
this.dom.dispatchEvent(this.__pWikiLoadedDOMEvent) }),
|
||||||
|
|
||||||
// XXX CACHE...
|
// XXX CACHE...
|
||||||
@ -1874,7 +1874,7 @@ object.Constructor('pWikiPageElement', Page, {
|
|||||||
for(var filter of Object.values(this.domFilters)){
|
for(var filter of Object.values(this.domFilters)){
|
||||||
filter
|
filter
|
||||||
&& filter.call(this, dom) }
|
&& filter.call(this, dom) }
|
||||||
this.onLoad()
|
this.trigger('onLoad')
|
||||||
return this },
|
return this },
|
||||||
|
|
||||||
// handle dom as first argument...
|
// handle dom as first argument...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user