Skip to content

breaks when Raphael.vml == true #2

Description

@sn3p

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
        }
    };
})();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions