These are chat archives for opal/opal

30th
May 2015
Vais Salikhov
@vais
May 30 2015 14:20
Fun fact: Opal is now passing 5005 rubyspec examples :tada:
Mitch VanDuyn
@catmando
May 30 2015 16:03
Coolest!
@vais 5005 out of?
anybody: I am having trouble using Element.expose
Mitch VanDuyn
@catmando
May 30 2015 16:10

I am trying to do this

Element.expose "dialog"
class Foo
   def close
      Element.find(@e).dialog('close') # this fails with Uncaught TypeError: $scope.get(...).$find(...).$dialog is not a function
   end
end

now if I move Element.expose to the line right above where I am using it, all is well.

Elia Schito
@elia
May 30 2015 17:10
@vais awesome! great job!
@catmando does it work if you expose in another file?
Mitch VanDuyn
@catmando
May 30 2015 20:19
@elia, no I tried it in a separate file... well if this is surprising behavior, I will extract this to a smaller test app, and see what is going on.
@elia so weird though... works fine as long as its executed in the method before its used
Elia Schito
@elia
May 30 2015 21:13
@catmando had a dejavu, anyway can you open an issue for that (or search for an existing one)?
Mitch VanDuyn
@catmando
May 30 2015 21:26
@elia of course, but first I want to make sure its not something totally goofy I am doing
Elia Schito
@elia
May 30 2015 21:35
alas, I have a bad feeling about this ;)
meh.
@meh
May 30 2015 21:42
elia, what is going on? getting a bunch of notifications
are we gonna die?
Elia Schito
@elia
May 30 2015 21:42
let me check…
uh…
err…
no :D
played a bit with GH teams to get team mentions that would include @vais
now @opal/core should work
@meh I think you should also join the #opal room on gitter