{:uriI"Âfile:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js?type=application/javascript&pipeline=self&id=fbca9758a01ba65221d562efa1a3a7511160c7ea802ecebe5150ae65b69128d9:ET:load_pathI"8/Users/izik/www/sparse/izi_lightup/spec/javascripts;T: filenameI"R/Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js;T: nameI"helpers/extend/fixture;T:logical_pathI"#helpers/extend/fixture.self.js;T:content_typeI"application/javascript;T: sourceI"~(function (self) { var $root, $meta, $cache; if (typeof document === 'object') { $meta = document.querySelector('[name=fixture_root]'); $root = $meta && $meta.content; } $root || ($root = '/assets/fixtures/'); $cache = {}; function download(path) { return new Promise(function (resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open('GET', $root + path, true); xhr.onload = function (_e) { var result; if (xhr.readyState === 4) { result = xhr.responseText; if (xhr.status === 200) { if (/\.json$/.test(path)) { try { result = JSON.parse(result); } catch (error) { console.warn('JSON parse error:', error) } } resolve(result); } else { reject(xhr.statusText); } } }; xhr.onerror = function (_error) { reject(xhr.statusText); }; xhr.send(null); }); } function fixture(path) { return $cache[path] || ($cache[path] = download(path)); } self.fixture = fixture; })(this); ;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"`file-digest:///Users/izik/www/sparse/izi_lightup/spec/javascripts/helpers/extend/fixture.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%U䉾ÐÁý¥¢¿Âf§‡ÕS¾¯m·ªÚH›ãÕ/Ì/Ë: lengthi~:dependencies_digest"%±`Ë&w•CÐíéuÏNˆ™%/²_μ…á )K-áïM :idI"Efbca9758a01ba65221d562efa1a3a7511160c7ea802ecebe5150ae65b69128d9;F: mtimel+â$]b