1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

parent, self and top are the same since now

This commit is contained in:
2006-01-28 14:15:55 +01:00
parent 52d3a6411d
commit 7c7541f4d1

View File

@ -105,8 +105,9 @@ window_get(struct SEE_interpreter *interp, struct SEE_object *o,
checktime(interp); checktime(interp);
if (p == s_closed) { if (p == s_closed) {
SEE_SET_BOOLEAN(res, 0); SEE_SET_BOOLEAN(res, 0);
} else if (p == s_self) { } else if (p == s_self || p == s_parent || p == s_top) {
SEE_SET_OBJECT(res, o); SEE_SET_OBJECT(res, o);
#if 0
} else if (p == s_parent || p == s_top) { } else if (p == s_parent || p == s_top) {
struct document_view *doc_view = vs->doc_view; struct document_view *doc_view = vs->doc_view;
struct document_view *top_view = doc_view->session->doc_view; struct document_view *top_view = doc_view->session->doc_view;
@ -131,7 +132,7 @@ window_get(struct SEE_interpreter *interp, struct SEE_object *o,
if (compare_uri(vs->uri, top_view->vs->uri, URI_HOST)) { if (compare_uri(vs->uri, top_view->vs->uri, URI_HOST)) {
SEE_SET_OBJECT(res, (struct SEE_object *)newjsframe); SEE_SET_OBJECT(res, (struct SEE_object *)newjsframe);
} }
#endif
} else if (p == s_alert) { } else if (p == s_alert) {
SEE_SET_OBJECT(res, win->alert); SEE_SET_OBJECT(res, win->alert);
} else if (p == s_open) { } else if (p == s_open) {