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

Document how to instantiate new DOM objects from Lua #37

Open
paulcuth opened this issue Jun 12, 2016 · 3 comments
Open

Document how to instantiate new DOM objects from Lua #37

paulcuth opened this issue Jun 12, 2016 · 3 comments
Labels

Comments

@paulcuth
Copy link
Owner

For example:
local date = window.Date.new()

@MangelMaxime
Copy link

Hello, I try to use this code but I always got a
Error: attempt to index a nil value

Here is my code:

function startClock()
  local today = window.Date.new()
end

I also tried using window.extract()

Just to keep trace.

@paulcuth
Copy link
Owner Author

Hi @MangelMaxime,
I've updated the version in the CDN to the latest master so this should be working now:
http://jsbin.com/bubexoyiwa/edit?html,console

@MangelMaxime
Copy link

Seems to work :) We can close I suppose

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

No branches or pull requests

2 participants