**** BEGIN LOGGING AT Mon Sep 01 02:59:58 2014 Sep 01 11:50:41 afternoon room Sep 01 11:55:16 hi Sep 01 12:50:08 can I listen to signals in a singleton ? Sep 01 13:07:10 if it's a singleton, why not call the function directly? Single.getInstance().doStuff(). This creates less overhead. Or am I missing something? Sep 01 13:07:24 it's been a while since I've used singletons Sep 01 13:16:49 @Simpson_2, just to draw your attention Sep 01 13:24:06 I want to listen in a singleton for signals Sep 01 13:41:11 yes, I know, I'm just questioning if that would be needed. Because instead of doing Signals.send() and implementing a listening function, you could easily just do a Singleton.getInstance().function(). But that again is just based on my AS3 time. I haven't worked with singletons in Enyo Sep 01 13:42:00 and, hi Joop Sep 01 13:47:32 I would have a very strict coupling between 2 components then Sep 01 13:49:03 hi pjetr :) all good? Sep 01 13:56:37 enyo singletons are basicly globals.. or are we searching something else? can't read the question anymore Sep 01 14:05:44 made a merge request on popup.js, I had problems with z-index in firefox Sep 01 14:05:53 if someone has some time to look at it.. Sep 01 14:10:04 @joop, Simpson_2 said: can I listen to signals in a singleton? Sep 01 14:10:18 and then I suggested to simply skip the signals Sep 01 14:11:04 @Simpson_2, indeed, as joop says, coupling your component with a Signal, or a singleton, I don't think there's that much of a difference Sep 01 14:11:40 aren't signals events and singletons objects on the global object? Sep 01 14:11:54 there is a difference.. Sep 01 14:12:32 signals can be used as normal events Sep 01 14:12:44 https://github.com/enyojs/enyo/wiki/Event-Handling Sep 01 14:12:59 singletons is the same as window.singleton = {} Sep 01 14:14:36 I use them already Sep 01 14:14:57 I have 2 singletons which I wanted to connect to each other with a signal Sep 01 14:15:49 ok... and placing a handler in the receiving singleton doesn't work? Sep 01 14:17:07 nope Sep 01 14:17:26 strange.. I'd have to look in to that Sep 01 14:17:40 so It might be that the signal is send before the singleton is initialized Sep 01 14:17:53 joop, are you on the Enyo team ? Sep 01 14:17:57 but since they are both singletons isn't it easier to just do window.singleton2.setSomething = ... Sep 01 14:18:14 nope not in enyo team Sep 01 14:18:19 k Sep 01 14:22:08 normal events would be signaled automaticly since singletons don't have a dom node attached to it (in normal cases) Sep 01 14:22:35 I'll jsfiddle a bit Sep 01 14:31:04 thx Sep 01 15:31:23 @Simpson_2 can't get it to work ether.. I have to take a longer look on an other time Sep 01 15:31:38 but the enyo docs warn you already saying Sep 01 15:31:40 Do not abuse Signals. Coupling objects with global communication is considered evil. Sep 01 15:32:05 :) Sep 01 15:32:18 I think it's possible to do unless there's an owner needed.. nvm Sep 01 15:32:58 I'm looking at the structure of my app to see if I need it Sep 01 17:05:45 Simpson_2: what is your ultimate goal for this coupling, and why won't the regular event system work? You can bubble or waterfall events practically anywhere you want. Sep 01 17:36:44 sugardave, I use 2 singletons which are manipulated from the 'outside' ( the 'browser' in this case ) Sep 01 21:52:45 Is there any documentation out there for mixins? I don't see anything obvious. Sep 01 22:04:04 chall: Maybe. I think it goes: enyo.mixin(obj1, obj2) returns obj1 with updated(overwritten)/new properties from obj2 Sep 01 22:54:59 hey enyos Sep 02 01:41:18 it's a bit overkill to do your site's 404 page in enyo isn't it Sep 02 01:46:17 @EricBlade enyo all the things Sep 02 01:52:22 i tried to boot up the hard drives in the computer that last had my webserver on it, and it was just "click... click... click" Sep 02 01:52:33 so i figured i'd better build a really nice 404 page for the new server :-) Sep 02 01:55:35 :) Sep 02 01:58:00 I learned today, about a wonderful thing called MutationObserver. Sep 02 02:05:01 nice! Sep 02 02:52:30 when testing an enyo component intended to display adsense, it's probably best to turn off adblock. Sep 02 02:53:47 wow. took ~ a minute to load the page on my tablet. o.O maybe i've had smarter ideas. **** ENDING LOGGING AT Tue Sep 02 02:59:59 2014