These are chat archives for ericelliott/stampit

25th
Feb 2015
John Fawcett
@jrf0110
Feb 25 2015 22:01
Does this seem right?
var factoryA = stampit()
  .methods({
    foo: function(){ /* ... */ }
  });

var factoryB = stampit()
  .compose( factoryA )
  .enclose( function(){
    console.log( typeof this.foo );
  });

factoryB() // logs => undefined
Vasyl Boroviak
@koresar
Feb 25 2015 22:03
Nope. Give me an hour please. I'll dig it in.
John Fawcett
@jrf0110
Feb 25 2015 22:05
Hrmmm actually.. when I isolated it like that and ran it, I did indeed get function so nevermind @koresar
Vasyl Boroviak
@koresar
Feb 25 2015 22:07
Good ☺
Still I'd like to know what has confused you that much?
John Fawcett
@jrf0110
Feb 25 2015 22:08
oh, I was mucking around with some of my modules and accidentally left out the return/exports statement (so in the above example, factoryA was an empty object I think)
oh actually, that wasn't it at all. As usual, it was actually something very dumb and completely unrelated
I just misread my error
Vasyl Boroviak
@koresar
Feb 25 2015 22:12
Thanks. Cheers. ☺