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