Sha256: 6c5c596266afdba714f4bc222e42f34ef69b13f83c44a4692d8553f3ef852016

Contents?: true

Size: 617 Bytes

Versions: 12

Compression:

Stored size: 617 Bytes

Contents

import {VUrls} from '../../utils/urls';

export class VLoads extends VUrls{
    constructor(options, url, params, event) {
        super();
        this.options = options;
        this.params = params;
        this.url = url;
        this.event = event;
    }

    call(results) {
        var url = this.buildURL(this.url, this.params);
        var promiseObj = new Promise(function (resolve) {
            console.log("Loading page: " + url);
            results.push({action:'loads', statusCode: 200});
            resolve(results);
            window.location = url;
        });
        return promiseObj;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

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