Skip to content

Jquery 1.7.2 compatiblity issue #34

@mukeshyadav-cdac

Description

@mukeshyadav-cdac

I am using jquery 1.7.2 rather than 1.4.2 .
At line no 284 in the code is having a problem
(jQuery.each(topUp.element.attr("class").split(/\s/), function(i, c) {)

topUp.element.attr("class") gives me undefined if class is not defined in 1.7.2
but it gives me empty string if I am using 1.4.2.
So I am getting Exception on this line.
I changed this line to
jQuery.each((topUp.element.attr("class") || "").split(/\s/), function(i, c) {
to resolve my problem.

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