Sha256: 9a702fc182a7c73819794a8fe834627cddfdff6bd01199a8b31538c7f3de605e

Contents?: true

Size: 463 Bytes

Versions: 15

Compression:

Stored size: 463 Bytes

Contents

export class VNavigates {
    constructor(options, params, event) {
        this.target = options.target;
        this.params = params;
        this.event = event;
    }

    call(results) {
        var promiseObj = new Promise(function (resolve) {
            console.log("Navigating back");
            results.push({action: 'navigates', statusCode: 200});
            history.back();
            resolve(results);
        });
        return promiseObj;
    }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
voom-presenters-0.2.0 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.13 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.12 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.11 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.10 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.9 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.8 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.7 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.6 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.5 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.4 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.3 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.2 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.1 views/mdc/assets/js/components/events/navigates.js
voom-presenters-0.1.0 views/mdc/assets/js/components/events/navigates.js