Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties of event and element in lua 5.3 binding is all nil #256

Open
tim37021 opened this issue May 22, 2015 · 2 comments
Open

Properties of event and element in lua 5.3 binding is all nil #256

tim37021 opened this issue May 22, 2015 · 2 comments

Comments

@tim37021
Copy link
Contributor

has anyone tested lua 5.3 binding?

...

It shows 'Element (07a9e918)' on my debug console

..

Shows nil

@tim37021
Copy link
Contributor Author

Oh my mistake
Not all properties but some of them
element.tag_name
event.mouse_x event.mouse_y

inner_rml, id . etc are reachable!

@tim37021
Copy link
Contributor Author

int ElementGetAttrtag_name(lua_State* L)
{
    Element* ele = LuaType<Element>::check(L,1);
    LUACHECKOBJ(ele);
    lua_pushstring(L, ele->GetTagName().CString());
    // Wrong here
    return 0;
}

bug found.... I will issue a pull request soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant