Skip to content

Returning non-promise value via config prop #16

@graef685

Description

@graef685

New config property promised -> true|false -> default true

If false then resolve promise before returning on open() and close()

Implementation example:

var overlay = $('.test').overlayAsPromised({
    promised: false
}, function() {
    return "test";
});

var result = overlay.open();

console.log(result);

// output --> "test"

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions