00:01
<
fkchang >
meh`: I defined in the class, with the update, my code is broken, so I need to track that down to see if anythings changed wrt inheritance
00:01
<
meh` >
snap, sorry about that
00:04
GitHub146 has joined #opal
00:04
<
GitHub146 >
lissio/master c1d9b86 meh: component: improve inheritance generation
00:04
GitHub146 has left #opal [#opal]
00:04
<
GitHub146 >
lissio/master ac724e0 meh: component: allow #tag to define other attributes
00:07
<
meh` >
fkchang, ok, now you can define other attributes with #tag
00:07
GitHub170 has joined #opal
00:07
GitHub170 has left #opal [#opal]
00:07
<
GitHub170 >
lissio/master 6c6f8eb meh: component: update selector generation
00:07
<
meh` >
fkchang, and the internally generated classes will be better looking if they're not anonymous classes
00:08
<
fkchang >
ok, I'll pull that and see, seems like my fail is in the middle of lissio code
00:09
<
meh` >
fkchang, if you can give me a stacktrace or something I'll probably figure it out
00:09
<
meh` >
all my stuff is working on latest tho
00:09
<
fkchang >
Uncaught NoMethodError: undefined method `each' for nil app.js:2551
00:09
<
fkchang >
(anonymous function) app.js:2551
00:09
<
fkchang >
def.$method_missing.TMP_1 app.js:1738
00:09
<
fkchang >
def.$raise app.js:2240
00:10
<
fkchang >
method_missing_stub app.js:466
00:10
<
fkchang >
def.$element.$c._p.TMP_18 app.js:21428
00:10
<
fkchang >
Opal.$yield1 app.js:582
00:10
<
fkchang >
def.$each.TMP_6 app.js:5398
00:10
<
fkchang >
def.$element app.js:21428
00:10
<
fkchang >
$opal.defs.$a._p.TMP_9 app.js:21308
00:10
<
fkchang >
$opal.defn.TMP_3 app.js:1708
00:10
<
fkchang >
$opal.defs.$a._p.TMP_7 app.js:21295
00:10
<
fkchang >
$a._p.TMP_27 app.js:21480
00:10
<
fkchang >
Opal.$yieldX app.js:602
00:10
<
fkchang >
def.$call.TMP_2 app.js:9459
00:10
<
fkchang >
$opal.defs.$a._p.TMP_3 app.js:19232
00:10
<
meh` >
you sure you're calling super everywhere?
00:10
<
fkchang >
Opal.$yield1 app.js:575
00:10
<
fkchang >
def.$each.TMP_3 app.js:6743
00:10
<
meh` >
sounds like an @events setup failure
00:10
<
fkchang >
(anonymous function) app.js:19235
00:10
<
fkchang >
$a._p.$a._p.TMP_11 app.js:19283
00:10
<
fkchang >
Opal.$yield1 app.js:582
00:10
<
fkchang >
def.$each.TMP_6 app.js:5398
00:10
<
fkchang >
def.$each.TMP_2 app.js:11850
00:10
<
fkchang >
$a._p.TMP_8 app.js:19283
00:11
<
fkchang >
Opal.$yieldX app.js:602
00:11
<
fkchang >
def.$call.TMP_2 app.js:9459
00:11
<
fkchang >
$opal.defs.$a._p.TMP_3 app.js:19232
00:11
<
fkchang >
Opal.$yield1 app.js:575
00:11
<
fkchang >
def.$each.TMP_3 app.js:6743
00:11
<
fkchang >
(anonymous function) app.js:19235
00:11
<
fkchang >
def.$initialize.self.roots.$a._p.TMP_5 app.js:19250
00:11
<
fkchang >
Opal.$yieldX app.js:602
00:11
<
fkchang >
def.$collect.self.$each._p app.js:3062
00:11
<
fkchang >
Opal.$yield1 app.js:582
00:11
<
fkchang >
def.$each.TMP_6 app.js:5398
00:11
<
fkchang >
$opal.defn.TMP_1 app.js:1656
00:11
<
fkchang >
def.$each.TMP_3 app.js:4270
00:11
<
fkchang >
def.$collect.TMP_4 app.js:3072
00:11
<
fkchang >
def.$initialize.TMP_4 app.js:19250
00:11
<
fkchang >
def.$new.TMP_2 app.js:1606
00:11
<
fkchang >
def.$inner_dom.TMP_4 app.js:18710
00:11
<
fkchang >
$opal.defs.$a._p.TMP_9 app.js:21309
00:11
<
fkchang >
$opal.defn.TMP_3 app.js:1708
00:11
<
fkchang >
$opal.defs.$a._p.TMP_7 app.js:21295
00:12
<
fkchang >
def.$start app.js:21617
00:12
<
fkchang >
$opal.defn.TMP_1 app.js:1656
00:12
<
fkchang >
$opal.defs.$a._p.TMP_4 app.js:21592
00:12
<
fkchang >
$opal.defs.$a._p.TMP_2 app.js:21576
00:12
<
fkchang >
Opal.$yieldX app.js:602
00:12
<
fkchang >
def.$call.TMP_2 app.js:9459
00:12
<
fkchang >
def.$ready.$a._p.TMP_2 app.js:19063
00:12
<
fkchang >
Opal.$yieldX app.js:602
00:12
<
fkchang >
def.$call.TMP_2 app.js:9459
00:12
<
fkchang >
def.$to_proc.self.proc.$b._p.TMP_7
00:12
<
fkchang >
could be, I'll check, it seems to be this line
00:12
<
fkchang >
return item.$render()}, TMP_27._s = self, TMP_27), $a).call($b, (($c = $scope.Component) == null ? $opal.cm('Component') : $c));
00:13
<
fkchang >
I lied, my spike that I did w/lissio and jubilee had super everywhere, this one, which is practice for my preso didn't
00:13
DrShoggoth has quit [Quit: Leaving]
00:13
<
meh` >
yeah, I'm not sure having super everywhere is the best way to go
00:13
<
fkchang >
so now I'm farther, but the error is
00:13
<
fkchang >
Uncaught TypeError: Object Unstarted has no method '$element' app.js:21397
00:13
<
fkchang >
(anonymous function) app.js:21397
00:14
<
fkchang >
def.$element app.js:21400
00:14
barry__ has quit [Remote host closed the connection]
00:14
<
fkchang >
$a._p.TMP_9 app.js:21308
00:14
<
fkchang >
$opal.defn.TMP_3 app.js:1708
00:14
<
fkchang >
$a._p.TMP_7 app.js:21295
00:14
<
fkchang >
$a._p.TMP_27 app.js:21480
00:14
<
fkchang >
Opal.$yieldX app.js:602
00:14
<
fkchang >
def.$call.TMP_2 app.js:9459
00:14
<
fkchang >
$a._p.TMP_3 app.js:19232
00:14
<
fkchang >
Opal.$yield1 app.js:575
00:14
barry has joined #opal
00:14
<
fkchang >
def.$each.TMP_3 app.js:6743
00:14
<
fkchang >
(anonymous function) app.js:19235
00:14
<
fkchang >
$a._p.TMP_11 app.js:19283
00:14
<
fkchang >
Opal.$yield1 app.js:582
00:14
<
fkchang >
def.$each.TMP_6 app.js:5398
00:14
<
fkchang >
def.$each.TMP_2 app.js:11850
00:14
<
fkchang >
$a._p.TMP_8 app.js:19283
00:14
<
fkchang >
Opal.$yieldX app.js:602
00:14
<
fkchang >
def.$call.TMP_2 app.js:9459
00:14
<
fkchang >
$a._p.TMP_3 app.js:19232
00:14
<
fkchang >
Opal.$yield1 app.js:575
00:15
<
fkchang >
def.$each.TMP_3 app.js:6743
00:15
<
fkchang >
(anonymous function) app.js:19235
00:15
<
fkchang >
self.roots.$a._p.TMP_5 app.js:19250
00:15
<
fkchang >
Opal.$yieldX app.js:602
00:15
<
fkchang >
self.$each._p app.js:3062
00:15
<
fkchang >
Opal.$yield1 app.js:582
00:15
<
fkchang >
def.$each.TMP_6 app.js:5398
00:15
<
fkchang >
$opal.defn.TMP_1 app.js:1656
00:15
<
fkchang >
def.$each.TMP_3 app.js:4270
00:15
<
fkchang >
def.$collect.TMP_4 app.js:3072
00:15
<
fkchang >
def.$initialize.TMP_4 app.js:19250
00:15
<
fkchang >
def.$new.TMP_2 app.js:1606
00:15
<
fkchang >
def.$inner_dom.TMP_4 app.js:18710
00:15
<
fkchang >
$a._p.TMP_9 app.js:21309
00:15
<
fkchang >
$opal.defn.TMP_3 app.js:1708
00:15
<
fkchang >
$a._p.TMP_7 app.js:21295
00:15
<
fkchang >
def.$start app.js:21617
00:15
<
fkchang >
$opal.defn.TMP_1 app.js:1656
00:15
<
fkchang >
$a._p.TMP_4 app.js:21592
00:15
<
fkchang >
$a._p.TMP_2 app.js:21576
00:16
<
fkchang >
Opal.$yieldX app.js:602
00:16
<
fkchang >
def.$call.TMP_2 app.js:9459
00:16
<
fkchang >
$a._p.TMP_2 app.js:19063
00:16
<
fkchang >
Opal.$yieldX app.js:602
00:16
<
fkchang >
def.$call.TMP_2 app.js:9459
00:16
<
fkchang >
self.proc.$b._p.TMP_7 app.js:13441
00:16
<
fkchang >
looks like here
00:16
<
fkchang >
def.$element = function() {
00:16
<
fkchang >
var $a, $b, $c, $d, TMP_17, $e, TMP_18, self = this, scope = nil, elem = nil;
00:16
<
fkchang >
if ((($a = self.element) !== nil && (!$a._isBoolean || $a == true))) {
00:16
<
fkchang >
return self.element};
00:16
<
fkchang >
scope = (function() {if ((($a = self.$parent()) !== nil && (!$a._isBoolean || $a == true))) {
00:16
<
fkchang >
return self.$parent().$element()
00:16
<
fkchang >
So I'd guess inheritance, of some sort, maybe coz I use tag and not element?
00:17
<
meh` >
is Unstarted a class?
00:17
barry has quit [Read error: Operation timed out]
00:17
<
meh` >
no wait, I think I know
00:17
<
meh` >
it's again, a super bug
00:17
<
meh` >
this is retarded
00:18
<
meh` >
fkchang, basically, you're doing super instead of super()
00:18
<
meh` >
and it's setting the string "unstarted" or "Unstarted" or a class, or something, as the parent
00:18
<
meh` >
I have to document this, or choose a better way to handle it all
00:19
<
meh` >
either remove the parent business
00:19
<
meh` >
which I never used anyway
00:19
<
meh` >
yeah, fuck this
00:19
barry has joined #opal
00:20
barry has quit [Remote host closed the connection]
00:22
<
fkchang >
meh`: right, I correctly called super() on 1 of my classes, and not on the other, thx
00:22
<
meh` >
fkchang, yeah but disregard all the super business
00:22
<
meh` >
I'm removing it, it's too prone to errors
00:22
<
meh` >
an accessor is easier
00:22
<
meh` >
if you want to set the parent, you just set @parent
00:22
<
meh` >
or self.parent =
00:22
<
meh` >
and it will be used
00:22
<
fkchang >
as in class to inherit from?
00:23
<
meh` >
Component.new(parent)
00:23
<
meh` >
parent is used to find the scope of the element
00:23
<
meh` >
now you can set the parent scope to look for #element directly from the class
00:23
<
meh` >
this removes the need to call super through all the chain
00:23
<
fkchang >
what will the default be?
00:23
<
meh` >
nil, as is now
00:23
<
meh` >
nothing changes
00:24
<
meh` >
except if you were relying on the parent business
00:24
<
meh` >
but I doubt it
00:24
<
fkchang >
btw, my on :click from the child propagating in to the parent is still there
00:24
<
meh` >
fkchang, so you have Foo and Bar < Foo, you define a :click on Foo and one on Bar, and if you create a Foo both the Foo and Bar :click get called'
00:25
<
fkchang >
yes, for both classes
00:25
<
meh` >
are you 100% sure it's a Foo instance and not a Bar instance?
00:26
<
fkchang >
it's both, I have a card (yellow) and a bug card (red), click on both of them, and they both do both click events
00:26
GitHub150 has joined #opal
00:26
GitHub150 has left #opal [#opal]
00:26
<
GitHub150 >
lissio/master fb2e297 meh: component: remove the super monkey business
00:28
dleedev has joined #opal
00:31
<
fkchang >
and BugCard < Card
00:31
<
meh` >
fkchang, yeah, I'm trying to make a reduced testcase, give me a few
00:31
<
meh` >
I can reproduce it
00:31
<
meh` >
this is weird
00:35
<
meh` >
this can only mean something
00:35
<
meh` >
way more worrying
00:37
<
meh` >
this doesn't make any sense at all
00:38
<
meh` >
fkchang, okay, found it
00:38
<
meh` >
fkchang, I should do a deep copy instead of a shallow one
00:40
<
meh` >
too bad there's no #deep_dup in opal-activesupport
00:41
<
meh` >
guess there's no other way
00:44
GitHub6 has joined #opal
00:44
<
GitHub6 >
lissio/master 934a6c5 meh: component: deep clone @events and @tag
00:44
<
GitHub6 >
lissio/master 48113a7 meh: component: fix selector generation
00:44
GitHub6 has left #opal [#opal]
00:44
<
meh` >
should be fixed now
00:59
GitHub158 has joined #opal
00:59
<
GitHub158 >
lissio/master e693eba meh: component: more inheritance chain improvements
00:59
GitHub158 has left #opal [#opal]
01:15
<
fkchang >
meh`: thx
01:43
<
fkchang >
meh`: how come this doesn't work for @background
01:43
<
fkchang >
class BugCard < Card
01:43
<
fkchang >
tag class: [:card, "bug-card"]
01:43
<
fkchang >
def initialize(card_model)
01:43
<
fkchang >
@background = :red
01:43
<
fkchang >
background @background
01:43
<
fkchang >
def unhighlight
01:43
<
fkchang >
element.style { background @background}
01:43
<
fkchang >
meh`: but I'll say the on :click inheritance is fixed
01:47
<
fkchang >
meh`: though I expected the subclass to inherit the additional attributes in the tag card, i.e. I did a tag class: card, :draggable => "true" in Card, and just a tag class: [:card, "bug-card"], I expected it to inherit , :draggable => "true", which it did before the deep copy
01:51
<
dleedev >
how do you manipulate DOM in opal?
01:53
<
fkchang >
dleedev: you could do it through opal-browser or opal-jquery
01:53
<
dleedev >
ah, thanks
01:53
<
dleedev >
is opal-jquery a binding into jquery.js, or is it a jquery-ish library in opal?
01:54
<
fkchang >
it's a ruby binding, the interface is more rubylike that a straight wrapping, which I think is a good thing
01:54
<
fkchang >
Document.ready? do
01:55
barry has joined #opal
01:59
barry has quit [Ping timeout: 252 seconds]
02:02
fkchang has quit [Remote host closed the connection]
02:08
<
dleedev >
is there something like pry for opal?
02:11
RoxasShadowRS has quit [Read error: Connection reset by peer]
02:14
marcandre has joined #opal
02:17
e_dub has joined #opal
02:21
DrShoggoth has joined #opal
02:23
DrShoggoth has quit [Max SendQ exceeded]
02:24
<
dleedev >
> opal-repl myscript.rb
02:24
<
dleedev >
Could not find asset: opal-browser
02:24
<
dleedev >
I built and installed the opal-browser gem, but if I require it, it blows up
02:24
DrShoggoth has joined #opal
02:26
DrShoggoth has quit [Max SendQ exceeded]
02:26
<
dleedev >
well, I gotta go now, but it would be nice if something was written in the README about how to require gems
02:26
dleedev has quit [Quit: dleedev]
02:27
DrShoggoth has joined #opal
02:31
DrShoggoth has quit [Max SendQ exceeded]
02:34
DrShoggoth has joined #opal
02:37
DrShoggoth has quit [Max SendQ exceeded]
02:38
DrShoggoth has joined #opal
02:40
DrShoggoth has quit [Max SendQ exceeded]
02:40
DrShoggoth has joined #opal
02:45
DrShoggoth has quit [Max SendQ exceeded]
02:46
DrShoggoth has joined #opal
02:48
DrShoggoth has quit [Max SendQ exceeded]
02:48
DrShoggoth has joined #opal
02:50
DrShoggoth has quit [Max SendQ exceeded]
02:52
DrShoggoth has joined #opal
02:53
DrShoggoth has quit [Max SendQ exceeded]
02:54
<
meh` >
snab, he's gone
02:55
DrShoggoth has joined #opal
02:57
DrShoggoth has quit [Max SendQ exceeded]
03:30
GitHub159 has joined #opal
03:30
GitHub159 has left #opal [#opal]
03:30
<
GitHub159 >
lissio/master 8237eed meh: component: merge with #tag and replace with #tag!
03:34
GitHub33 has joined #opal
03:34
<
GitHub33 >
opal-browser/master ab851e5 meh: animation_frame: add documentation
03:34
<
GitHub33 >
opal-browser/master 3ad0b16 meh: dom/element: rename #matches? to #=~
03:34
GitHub33 has left #opal [#opal]
03:44
travis-ci has joined #opal
03:44
<
travis-ci >
[travis-ci] opal/opal-browser#135 (master - 3ad0b16 : meh): The build has errored.
03:44
travis-ci has left #opal [#opal]
03:48
marcandre has quit [Remote host closed the connection]
03:50
Noldorin has quit []
03:55
travis-ci has joined #opal
03:55
<
travis-ci >
[travis-ci] opal/opal-browser#135 (master - 3ad0b16 : meh): The build failed.
03:55
travis-ci has left #opal [#opal]
03:58
barry has joined #opal
03:59
travis-ci has joined #opal
03:59
travis-ci has left #opal [#opal]
03:59
<
travis-ci >
[travis-ci] opal/opal-browser#135 (master - 3ad0b16 : meh): The build passed.
04:00
DavidEGrayson has joined #opal
04:02
barry has quit [Ping timeout: 252 seconds]
04:10
meh` has quit [Ping timeout: 252 seconds]
06:01
barry has joined #opal
06:05
barry has quit [Ping timeout: 240 seconds]
06:28
e_dub has quit [Quit: e_dub]
06:34
e_dub has joined #opal
06:48
dleedev has joined #opal
06:49
dimaursu16 has quit [Ping timeout: 245 seconds]
06:57
<
dleedev >
do opal hashes only support string keys?
07:10
dimaursu16 has joined #opal
07:12
ryanstout has quit [Quit: ryanstout]
07:23
dimaursu16 has quit [Ping timeout: 264 seconds]
07:46
dimaursu16 has joined #opal
07:51
<
adambeynon >
dleedev: nope. Any object should be supported as a key
07:51
<
dleedev >
adambeynon: how does that work?
07:53
<
dleedev >
it look like self.map is an empty javascript object, in which case keys would be cast as strings
07:58
barry_ has joined #opal
08:02
barry_ has quit [Ping timeout: 240 seconds]
08:14
DavidEGrayson has quit [Read error: Connection reset by peer]
08:23
RoxasShadowRS has joined #opal
08:59
e_dub has quit [Quit: e_dub]
09:06
dimaursu16 has quit [Ping timeout: 245 seconds]
09:11
dimaursu16 has joined #opal
09:17
dimaursu16 has quit [Ping timeout: 252 seconds]
09:25
<
adambeynon >
dleedev: sorry, had to pop out
09:25
<
adambeynon >
so yes, self.map is a js object
09:25
<
adambeynon >
but there is also self.keys
09:25
<
adambeynon >
and array of keys
09:26
<
adambeynon >
so we hash each key, set the real object into the array, and put the hash => value in the js object
09:26
<
adambeynon >
(we are cheating a little by not using a real "hash" method, but thats going to be fixed at some point)
09:29
elia has joined #opal
09:59
barry_ has joined #opal
10:03
barry_ has quit [Ping timeout: 240 seconds]
10:12
<
dleedev >
adambeynon: I don't see the part where you has the key
10:12
<
dleedev >
it seems like the key is used directly as the key to self.map
10:13
<
dleedev >
s/has/hash
10:15
<
adambeynon >
dleedev: javascript is implicitly using toString() on each object
10:15
<
adambeynon >
until we implement #hash(), to use that instead
10:16
<
adambeynon >
so really we are hashing the string value of each key, rather than its hash()
10:16
<
dleedev >
that doesn't sound very safe, and should be documented
10:17
<
dleedev >
for instance, 1 and "1" would clash in the hash, right?
10:18
<
adambeynon >
dleedev: yes they would
10:20
<
dleedev >
and there's no plan to change that, right?
10:21
<
adambeynon >
dleedev: yeh, I want to fix it. Its just going to take a while, and at the moment I only have time for smaller fixes
10:21
<
adambeynon >
I need a couple of weekends to root out some of these bigger bugs and missing parts
10:22
<
dleedev >
actually fixing it might require a complete re-implementation of the hash-bucket-list implementation in js
10:22
<
dleedev >
is that what you mean?
10:24
<
adambeynon >
dleedev: probably not. every time a key is accessed/set, instead of doing self.map[object], we would need to do something like:
10:24
<
adambeynon >
self.map[object.$hash()]
10:25
<
dleedev >
so basically a compromise where $hash() is essentially equality
10:26
<
dleedev >
that might be a decent compromise
10:32
<
adambeynon >
dleedev: hopefully it should cover most of the rough edges
10:32
<
adambeynon >
the string + numerics hashing to the same is the biggest problem atm
10:35
kludge` has quit [Ping timeout: 252 seconds]
10:36
kludge` has joined #opal
10:58
barry_ has joined #opal
10:59
barry_ has quit [Client Quit]
11:56
dleedev has quit [Quit: dleedev]
13:11
meh` has joined #opal
13:12
marcandre has joined #opal
13:18
elia has quit [Quit: Computer has gone to sleep.]
13:29
elia has joined #opal
13:49
Kilobyte|StupidC has joined #opal
14:09
marcandre has quit [Remote host closed the connection]
14:43
Kilobyte|StupidC has quit [Quit: kilobyte22.de]
15:25
meh` has quit [Ping timeout: 245 seconds]
15:27
Noldorin has joined #opal
16:15
fkchang has joined #opal
16:17
Kilobyte|StupidC has joined #opal
17:19
DrShoggoth has joined #opal
17:23
dfranciosi has quit []
17:31
elia has quit [Ping timeout: 260 seconds]
18:42
dleedev has joined #opal
18:56
KresiusMengg has joined #opal
18:56
KresiusMengg has left #opal [#opal]
19:19
meh` has joined #opal
19:20
<
meh` >
fkchang, the @background there isn't working because you are using instance_exec and not call
19:21
<
meh` >
fkchang, you have to css do |_| _.background @background end
19:21
<
meh` >
dleedev, you can't require external libraries from the opal-repl, it's only for stdlib and corelib for now
19:22
<
dleedev >
so is there no way for me to test out my code in the console?
19:22
<
meh` >
dleedev, depends on the kind of code
19:24
<
meh` >
dleedev, there's till work going on in the tool side of things
19:55
<
fkchang >
dleedev: I dunno if I pushed it, but I added a require_js that will require a js file from a cdn url
19:55
<
fkchang >
for opal-irb
20:11
<
fkchang >
meh`: thx, I think I thought of that and tried it, but I'll try again
20:15
<
fkchang >
meh`: yeah, I tried again, it doesn't work
20:15
<
meh` >
fkchang, wait
20:15
<
meh` >
fkchang, yeah, sorry, that would't change a thing
20:15
<
meh` >
unless @background is an ivar in the class
20:19
<
meh` >
fkchang, you can only use the on :render in that case
20:19
<
meh` >
the css block is created at compile time
20:57
ryanstout has joined #opal
22:43
Noldorin has quit []
23:03
GitHub168 has joined #opal
23:03
<
GitHub168 >
opal/master 2c6bae2 meh: Alias Native::Array#to_ary to #to_a
23:03
GitHub168 has left #opal [#opal]
23:06
travis-ci has joined #opal
23:06
travis-ci has left #opal [#opal]
23:06
<
travis-ci >
[travis-ci] opal/opal#1725 (master - 2c6bae2 : meh): The build passed.
23:08
<
meh` >
mh, something's not right
23:08
<
adambeynon >
meh`: with what?
23:09
<
meh` >
adambeynon, trying to improve the DOM::NodeSet bullshit
23:10
<
meh` >
and noticed the above bug with Native::Array
23:11
<
meh` >
but it's still not working ◕ ◡ ◔
23:13
<
meh` >
but now I think I changed my mind
23:27
<
adambeynon >
lol. im also struggling with api design
23:27
<
adambeynon >
going from an objective-c api to ruby is tough
23:31
Noldorin has joined #opal
23:31
<
meh` >
no ok, the #to_ary change is proper
23:32
<
meh` >
it's how I'm using it that's wrong
23:44
<
meh` >
adambeynon, ping
23:44
<
adambeynon >
meh`: hi
23:44
<
meh` >
adambeynon, something's wrong
23:45
<
meh` >
def self.[](*nodes)
23:45
<
meh` >
new(nodes.flatten.map { |x| DOM(Native.convert(x)) })
23:45
<
meh` >
nodes here somehow is arguments[0]
23:46
<
adambeynon >
meh`: how are you calling the method? And what are the args?
23:46
<
meh` >
the Chrome debugger is broken
23:46
<
meh` >
NodeSet[Native::Array.new(`#@native.childNodes`)]
23:46
<
meh` >
nodes is the Native::Array
23:47
<
meh` >
even in the console
23:47
<
meh` >
nodes is nodes[0]
23:47
<
meh` >
but arguments si normal
23:47
<
meh` >
and calling $slice.call(arguments, 0) yields the right result
23:47
<
meh` >
I'm confused
23:48
<
meh` >
ok I'm confused
23:49
<
meh` >
the Scope variables says something else
23:49
<
meh` >
what is going on
23:51
<
fkchang >
meh`: I remember you mentioning something like "a coworker was going to work on std components for lissio"
23:52
<
meh` >
fkchang, he implemented autocomplete
23:55
fkchang has quit [Read error: Connection reset by peer]
23:56
fkchang has joined #opal
23:57
<
fkchang >
ah, jo looks similar to the dsl I made up in ruby, looks like their std components might be a good set to model for lissio
http://joapp.com/docs/#Class %20Hierarchy