<meh`>
fkchang, there's no need, lissio is just opal code
<meh`>
you can just use the environment
<meh`>
and yeah, the CORS stuff is dreadful
<meh`>
but everything web is
<fkchang>
so that code should work, if I include the right gems
<meh`>
took me a day to add proper CORS support to urna
<meh`>
yes
meh` has quit [Ping timeout: 240 seconds]
rageofmeh has quit [Ping timeout: 245 seconds]
fkchang has quit [Ping timeout: 252 seconds]
ylluminate` has joined #opal
ylluminate has quit [Ping timeout: 272 seconds]
ylluminate` has quit [Ping timeout: 260 seconds]
fkchang has joined #opal
<ryanstout>
is there any docs on using Native
marcandre has quit [Remote host closed the connection]
wmnnd has quit [Read error: Connection reset by peer]
wmnnd has joined #opal
ryanstout has quit [Quit: ryanstout]
[o__o] has left #opal [#opal]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
wmnnd has quit [Ping timeout: 265 seconds]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
wmnnd has joined #opal
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
e_dub has quit [Client Quit]
wmnnd has quit [Ping timeout: 252 seconds]
wmnnd has joined #opal
wmnnd has quit [Ping timeout: 260 seconds]
dfranciosi has joined #opal
wmnnd has joined #opal
<fkchang>
adambeynon: where is DateTime defined?
<adambeynon>
fkchang: it hasn't been implemented. It should go in date.rb
<fkchang>
ok, thx, I saw all the specs for it, but couldn't find it
elia has joined #opal
<adambeynon>
fkchang: I keep meaning to work on it for Vienna. If I get some time over the weekend I will take a look
DouweM has quit [Ping timeout: 240 seconds]
RoxasShadowRS has joined #opal
fkchang has quit [Ping timeout: 265 seconds]
DouweM has joined #opal
DouweM has quit [Ping timeout: 252 seconds]
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #opal
RoxasShadowRS has quit [Ping timeout: 245 seconds]
GitHub97 has joined #opal
GitHub97 has left #opal [#opal]
<GitHub97>
[opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/DeJC8w
<GitHub97>
opal-rspec/master 0b0b270 Adam Beynon: Fix async specs to use shorter delay
DouweM has joined #opal
RoxasShadowRS has joined #opal
<adambeynon>
meh`: the problem with async examples is that the runner isnt telling the formatter that an async group has started
<adambeynon>
something inside rspec must have changed without me noticing
elia has quit [Quit: Computer has gone to sleep.]
wmnnd has quit [Ping timeout: 245 seconds]
elia has joined #opal
[o__o] has quit [Read error: Operation timed out]
[o__o] has joined #opal
DouweM has quit [Ping timeout: 264 seconds]
meh` has joined #opal
<meh`>
adambeynon, pushed opal-rpsec yet?
fkchang has joined #opal
<fkchang>
meh`: can a lissio model "has_many" another model? I'm going to send json w/the "has_many" data included, I'm guessing I just handle it in the parse() call, I guess the has_many might be "property :children, as: Array"?"
<meh`>
fkchang, not supported yet, but I was thinking about it
<meh`>
it would be as: [Model]
<meh`>
you can do it manually for now
<meh`>
you do as: Array
<meh`>
and override the getter
<meh`>
to return a Promise.when
<fkchang>
meh`: Also any more thought on how you'll do reactive in lissio, I think I'm at the point where I want to make change to a component real time. Ideally I'd have some in the html() part that when it change it'd render to reflect it. In lieu of such, I could either "re render it", or just add code that does a DOM manipulation -- any recommendations?
<meh`>
fkchang, for now I'd do a DOM manipulation
<meh`>
remember you can refer to the rendered element with #element inside the model
<fkchang>
pl. O
<fkchang>
ok, I'll try it
<meh`>
you can see in shekels internal DOM manipulation
<fkchang>
thx, I'll look
<meh`>
should be in the PaymentList
<fkchang>
#remove()
dfranciosi has quit [Remote host closed the connection]
marcandre has joined #opal
<fkchang>
meh`: if I want to dynamically add a component to another component, how do I do that?
<meh`>
element << component.render
ryanstout has joined #opal
<meh`>
adambeynon, for the love of trains, push that gem :((
<meh`>
adambeynon, or find a way to use the git opal-rspec
dfranciosi has joined #opal
<ryanstout>
is there a reason when you call a method with a block that doesn't exist on an object, you get the following: Uncaught TypeError: Cannot set property '_p' of undefined
GitHub65 has joined #opal
<GitHub65>
[opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/7D4k9g
<GitHub65>
opal-rspec/master edb975b Adam Beynon: v0.3.0.beta3
GitHub65 has left #opal [#opal]
GitHub89 has joined #opal
<GitHub89>
[opal-rspec] adambeynon tagged v0.3.0.beta3 at 95cfb04: http://git.io/arRUwQ
GitHub89 has left #opal [#opal]
<adambeynon>
meh`: ^^^^
<adambeynon>
ryanstout: what is the receiver?
<adambeynon>
the core bridged classes might throw that error
<ryanstout>
any object: "test".not_a_method { }
elia has quit [Ping timeout: 252 seconds]
<ryanstout>
ok, humm
<adambeynon>
ryanstout: method_missing doesnt (currently) work for them unfortunately
<adambeynon>
strings, numerics, etc
<ryanstout>
its not trying to do method missing
<ryanstout>
I guess its just a confusing error
dfranciosi has quit [Remote host closed the connection]
<ryanstout>
is there a way to put a check in the call to see if the method is there?
<GitHub45>
opal-browser/master 0a867df meh: immediate: fix call in setImmediate
<GitHub45>
opal-browser/master 0a39580 meh: dom/element: rescue everything in #css and #xpath
<adambeynon>
ryanstout: yeah, many. it didnt last too long :P
<ryanstout>
adambeynon: Did you know that there used to be a way (still might be, though this was like 10 years ago) to grab objects from one iframe and use them in another.
<ryanstout>
we used to extend Array in an iframe and then use it elsewhere. crazy times :-)
<adambeynon>
ryanstout: I seem to remember that. I think I looked into that as a way to subclass Arrays - make an iframe per Array subclass and extend those independantly
<ryanstout>
adambeynon: one other question since I'm curious. What's the reason for all of the TMP_ variables, I'm assuming thats an optimization?
<meh`>
I think I broke travis
<adambeynon>
ryanstout: mostly to refer to a method inside its body - arguments.callee is deprecated kinda, so yeah, just a quick reference to the current method
<adambeynon>
self.$some_method <- that might not work if its been overriden