Sha256: 273d66b5cef93aa98e833a68993cfc12de85940d7b934e3663d7e42ebb25b2eb
Contents?: true
Size: 1.91 KB
Versions: 7
Compression:
Stored size: 1.91 KB
Contents
{:uriI"file:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js?type=application/javascript&pipeline=self&id=162dda07752136f9ddf49d078d50fa2905148b0a2b009f2b69839621e652c155:ET:load_pathI";/Users/leandro/src/job_notifier/app/assets/javascripts;T: filenameI"T/Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;T: nameI"job_notifier/notifier;T:logical_pathI""job_notifier/notifier.self.js;T:content_typeI"application/javascript;T:sourceI"Udocument.addEventListener("DOMContentLoaded", init); var jobIdentifier; function init() { var body = document.querySelector("body"); jobIdentifier = body.dataset.identifier; setInterval(poll, 5000); } function poll() { var oReq = new XMLHttpRequest(); oReq.onload = reqListener; oReq.onerror = reqError; oReq.open('get', '/job_notifier/jobs.json?identifier=' + jobIdentifier, true); oReq.send(); } function reqListener() { var data = JSON.parse(this.responseText); console.log(data); } function reqError(err) { console.error('error', err); } var namespace = namespace || {}; // here a namespace object is passed as a function // parameter, where we assign public methods and // properties to it (function( o ){ o.foo = "foo"; o.bar = function(){ return "bar"; }; })(namespace); console.log(namespace); ;T: metadata{:dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"%1ja-lqJAa@;=7c:lengthiU:dependencies_digest"%+:pIw>QsPGo'nz:idI"E162dda07752136f9ddf49d078d50fa2905148b0a2b009f2b69839621e652c155;F: mtimel+*W
Version data entries
7 entries across 7 versions & 1 rubygems