JS Odd Behavior - IMG Transition function
This function changes attribute values of an image, according to the context. It takes multiples params for a most accurate behavior, but it's doesn't matter. That checks wheter the value will to ascend or descend, then take the proper way. In test cases, the element is setting to descend, and you will notice that the desc() makes it easier, for then set the Attribute onmouseover/out (according to the context) with the same function but one addend, the boolean true in the last param, that changes the way when the other event occurs. Notice the statement if(max==false), which should be the way, but it`s not happens. Instead, the console displays some really odd: Uncaugh TypeError: grayscale is not defined - Line 2. Have nothing on line 2. "Grayscale" is the argument for the filtermethod parameter, so close to be. I`d like to know why. Thanks.