You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
stateful mixin method isEqual throw an exception when it tries to compare an array value with null.
Generally when we use stroke
add an object
apply stroke from line stroke to dashed stroke.
here when the state has changed for an object it verifies using isEqual mixin method and returns a boolean value. But while checking it fails where original array value is [4,1] and the current value is null and not an array.
Expected Behavior
it should return false
Actual Behavior
currently, throw an exception in the console.
Error stack reference
The text was updated successfully, but these errors were encountered:
keyurpatel
changed the title
fix for stateful mixing method isEqual which fails hard on array value compared with null.
fix for stateful mixin method isEqual which fails hard on array value compared with null.
May 5, 2018
Version
2.2.3
Test Case
http://jsfiddle.net/fabricjs/Da7SP/
Steps to reproduce
Description
stateful mixin method
isEqual
throw an exception when it tries to compare an array value with null.Generally when we use stroke
here when the state has changed for an object it verifies using
isEqual
mixin method and returns a boolean value. But while checking it fails where original array value is [4,1] and the current value is null and not an array.Expected Behavior
it should return false
Actual Behavior
currently, throw an exception in the console.
Error stack reference
The text was updated successfully, but these errors were encountered: