mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-02 12:00:10 +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...
|
||||
//
|
||||
__pWikiLoadedDOMEvent: new Event('pwikiloaded'),
|
||||
onLoad: types.event.Event('onLoad', function(){
|
||||
onLoad: types.event.PureEvent('onLoad', function(){
|
||||
this.dom.dispatchEvent(this.__pWikiLoadedDOMEvent) }),
|
||||
|
||||
// XXX CACHE...
|
||||
@ -1874,7 +1874,7 @@ object.Constructor('pWikiPageElement', Page, {
|
||||
for(var filter of Object.values(this.domFilters)){
|
||||
filter
|
||||
&& filter.call(this, dom) }
|
||||
this.onLoad()
|
||||
this.trigger('onLoad')
|
||||
return this },
|
||||
|
||||
// handle dom as first argument...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user