Skip to content

fnTest is way too broad #44

@philfreo

Description

@philfreo

I was trying to upgrade from the original/old version of backbone-super to the latest and haven't been able to because fnTest is way too specific in simply looking for the string _super appearing in the function.

So if I have a simple method like this:

    var _super = Backbone.RelationalModel;
    var Model = _super.extend({
        toContextJSON: function() {
            var data = _super.prototype.toJSON.call(this);
            // ...
        }
    });

Backbone-Super throws an error.

If I rename _super to be a different variable name, it stops complaining. This is a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions