Re: Couple JavaScript Questions

2014-03-06 Thread Mike Tutkowski
Just ran a little test on #2 and if args is null, it returns "N/A" as expected. On Thu, Mar 6, 2014 at 8:41 AM, Mike Tutkowski wrote: > Well, I believe the way it works is maxiops is being passed to the > converter function with the name args. > > The code does work, but I was curious what woul

Re: Couple JavaScript Questions

2014-03-06 Thread Mike Tutkowski
Well, I believe the way it works is maxiops is being passed to the converter function with the name args. The code does work, but I was curious what would happen from a JavaScript standpoint if args was null. On Thu, Mar 6, 2014 at 12:34 AM, Punith S wrote: > the first block seems to be fine ,

Re: Couple JavaScript Questions

2014-03-05 Thread Punith S
the first block seems to be fine , but in the second block , (args > 0) seems to be incorrect because args is an object right ? which inturn contains the volume properties. which can be accessed as args.volume.maxiops i guess. thanks On Thu, Mar 6, 2014 at 12:52 PM, Mike Tutkowski < mike.tutkow.

Couple JavaScript Questions

2014-03-05 Thread Mike Tutkowski
Hi, I'm not nearly as well versed in JavaScript as I am in Java. I was wondering if someone could answer these questions for me: If "memory" is stored in the DB as null, I assume args will be equal to undefined below. Is that correct? memory: { label: 'label.memory.mb', converter: functi