When dealing with VML it throws an error: "Object does not support this property or method".
To fix this, always create the Raphael.el.dropShadow method, even when we're dealing with VML.
(function () {
if (Raphael.vml) {
Raphael.el.dropShadow = function (size, offsetX, offsetY) {
// deal with VML here
return this; // maintain chainability
}
} else {
Raphael.el.dropShadow = function (size, offsetX, offsetY) {
// deal with SVG here
return this; // maintain chainability
}
};
})();
When dealing with VML it throws an error: "Object does not support this property or method".
To fix this, always create the Raphael.el.dropShadow method, even when we're dealing with VML.