Skip to content

Move 'methods' object outside of navigate #5

@dsidirop

Description

@dsidirop

The implementation of navigate on the time of this writing looks like so:

navigate: function (method) {
            var methods = {
                  // ...
            },

Hence every time we call navigate to generate urls:

$.navigate('url', ...)

The 'methods' object is generated again and again. This introduces an unnecessary overhead.

The solution: Refactor the implementation to move the 'methods' object outside of 'navigate()'.

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