Conversation

Notices

  1. Does any JSer know what this means? var sheet = styleTag.sheet ? styleTag.sheet : styleTag.styleSheet;

    Saturday, 31-Mar-12 14:53:25 UTC from StatusNet Desktop
    1. @jdagrapesy If it's anything like it is in Java, it's the equivalent of "if styleTag.sheet var sheet = styleTag.sheet; else var sheet = styleTag.styleSheet;"

      Saturday, 31-Mar-12 14:58:22 UTC from StatusNet Android
      1. @redenchilada what's that do/cause though? :P

        Saturday, 31-Mar-12 15:00:40 UTC from StatusNet Desktop
        1. @jdamangoesy It will initialize a variable (which could be anything) named sheet. If styleTag.sheet is defined, it will set sheet equal to styleTag.sheet; otherwise, it will set sheet equal to styleTag.styleSheet.

          Saturday, 31-Mar-12 15:04:59 UTC from StatusNet Android
    2. @jdakiwiy Basically a one-line if-else statement for assigning variables.

      Saturday, 31-Mar-12 15:00:01 UTC from StatusNet Android
      1. @redenchilada Oh I don't mena the variable, I was just wondering if someone could understand that 'sheet' stuff, im not sure what it wants there, trying to change css with js

        Saturday, 31-Mar-12 15:01:27 UTC from StatusNet Desktop
        1. @jdagrapesy ...How much JS do you know? I might be able to help you out a bit with the process.

          Saturday, 31-Mar-12 15:07:01 UTC from StatusNet Android