mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-01 11:30:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
102b8a92c2
commit
e71afbca53
@ -298,6 +298,8 @@ function(name){
|
|||||||
|
|
||||||
// XXX HISTORY do we need history management???
|
// XXX HISTORY do we need history management???
|
||||||
// XXX FUNC need to handle functions in store...
|
// XXX FUNC need to handle functions in store...
|
||||||
|
// XXX EVENT add event triggers/handlers...
|
||||||
|
// ...event handlers must be local and not propogate to the root page.
|
||||||
var BasePage =
|
var BasePage =
|
||||||
module.BasePage =
|
module.BasePage =
|
||||||
object.Constructor('BasePage', {
|
object.Constructor('BasePage', {
|
||||||
@ -312,6 +314,7 @@ object.Constructor('BasePage', {
|
|||||||
__location: undefined,
|
__location: undefined,
|
||||||
get location(){
|
get location(){
|
||||||
return this.__location ?? '/' },
|
return this.__location ?? '/' },
|
||||||
|
// XXX EVENT need to be able to trigger a callback/event on this...
|
||||||
set location(path){
|
set location(path){
|
||||||
this.referrer = this.location
|
this.referrer = this.location
|
||||||
var cur = this.__location =
|
var cur = this.__location =
|
||||||
@ -338,6 +341,7 @@ object.Constructor('BasePage', {
|
|||||||
this.__history = [] }
|
this.__history = [] }
|
||||||
//this.__history = (this.__history ?? []).slice() }
|
//this.__history = (this.__history ?? []).slice() }
|
||||||
return this.__history },
|
return this.__history },
|
||||||
|
// XXX EVENT trigger location change event..,
|
||||||
back: function(offset=1){
|
back: function(offset=1){
|
||||||
var h = this.history
|
var h = this.history
|
||||||
if(h === false
|
if(h === false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user