Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Michał Wołczecki-Klim
    @michalklim
    What is actual difference between jquery $el.bind() and $el.on() method and why you are using $el.bind()?
    Michał Wołczecki-Klim
    @michalklim
    Does it mean the most crossbrowser way of catching key events is 'keyup'?
    Michał Wołczecki-Klim
    @michalklim
    Thanks for great lesson! See you next week
    Julian
    @pYr0x
    Can someone answer my question ?
    Justin Meyer
    @justinbmeyer
    I did
    in the video
    at the end
    Julian
    @pYr0x
    ohh.. ok... i see
    but with extending the prototypes i will lose the proto chain
    also i cant check if is instance of
    too
    i read somethink that with object.create we can inheritance from multiple objects
    or do i missunderstand something
    Matthew Phillips
    @matthewp
    You don't have multiple inheritance in JavaScript
    But you can mixin behaviors with $.extend
    Julian
    @pYr0x
    also with object.create there is no way of multiple inhertitance
    ?
    Matthew Phillips
    @matthewp
    No
    Julian
    @pYr0x
    also in es6?
    Matthew Phillips
    @matthewp
    Nope, just a single extend as far as I'm aware.
    Julian
    @pYr0x
    thats a big drawback
    is think... often i need a multiple inheritance
    Matthew Phillips
    @matthewp
    Maybe coming from php, but I don't miss it in JavaScript personally
    Like I said mixins give you the same thing just not with instanceof
    Julian
    @pYr0x
    and how can i check if the object is an instance of an other?
    without instanceof
    Matthew Phillips
    @matthewp
    Check if it looks like that object
    Like a NodeList is not an Array, but it has a length property so that's good enough for the array methods.
    Justin Meyer
    @justinbmeyer
    Hello, we are going to get started soon
    Alexis Abril
    @alexisabril
    and we’re live!
    James Atherton
    @James0x57
    This message was deleted
    metaKey on windows is the windows key
    a live jsbin stream of justin’s code
    James Atherton
    @James0x57
    I can see it now, deleted the message, sorry - might have just been on my end
    Cory Robinson
    @crobinson42
    Can anyone explain why this returns an empty object "JSON.stringify(navigator)”? I don’t have any errors showing just “{}"
    Justin Meyer
    @justinbmeyer
    Why would you do that?
    @crobinson42
    navigator references an object
    Cory Robinson
    @crobinson42
    Writing a simple module that stores error messages in local storage so when a user submits a bug I can see their error storage
    Justin Meyer
    @justinbmeyer
    you can only pass "simple objects"
    to JSON.stringify
    Cory Robinson
    @crobinson42
    What’s the difference between a simple object and…?
    JSON.stringify(location) works..?
    Justin Meyer
    @justinbmeyer
    a complex proto chain
    Cory Robinson
    @crobinson42
    any references I can read on this?
    Justin Meyer
    @justinbmeyer
    I'm surprised location works
    does navigator have any enumerable properties?