o: ActiveSupport::Cache::Entry :@compressedF:@created_atf1359300246.516481:@expires_in0: @value"Þ{I" class:EFI"ProcessedAsset;FI"logical_path;FI"anjlab/uploads/utils.js;TI" pathname;FI"S/Users/yury/Work/uploads/app/assets/javascripts/anjlab/uploads/utils.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-27T19:23:44+04:00;FI" length;FiÄI" digest;F"%be2d271cc2a8df375666ce88b454214eI" source;FI"Ä(function() { var _base, _ref, _ref1; if ((_ref = this.AnjLab) == null) { this.AnjLab = {}; } if ((_ref1 = (_base = this.AnjLab).Uploads) == null) { _base.Uploads = {}; } this.AnjLab.Uploads.Utils = { log: function(message, level) { if (window.console) { if (!level || level === 'info') { return window.console.log(message); } else { if (window.console[level]) { return window.console[level](message); } else { return window.console.log("[" + level + "] " + message); } } } }, isXhrUploadSupported: function() { var input; input = document.createElement('input'); input.type = 'file'; return input.multiple !== void 0 && typeof File !== "undefined" && typeof FormData !== "undefined" && typeof (new XMLHttpRequest()).upload !== "undefined"; }, isFolderDropSupported: function(dataTransfer) { return dataTransfer.items && dataTransfer.items[0].webkitGetAsEntry; }, isFileChunkingSupported: function() { return this.android() && this.isXhrUploadSupported() && (File.prototype.slice || File.prototype.webkitSlice || File.prototype.mozSlice); }, parseJson: function(string) { if (typeof JSON !== "undefined" && JSON !== null) { return JSON.parse(string); } else { return eval("(" + string + ")"); } }, getUniqueId: function() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r, v; r = Math.random() * 16 | 0; v = c === 'x' ? r : r & 0x3 | 0x8; return v.toString(16); }); }, isFileOrInput: function(maybeFileOrInput) { if (window.File && maybeFileOrInput instanceof File) { return true; } if (window.HTMLInputElement) { if (maybeFileOrInput instanceof HTMLInputElement) { if (maybeFileOrInput.type && maybeFileOrInput.type.toLowerCase() === 'file') { return true; } } } if (maybeFileOrInput.tagName) { if (maybeFileOrInput.tagName.toLowerCase() === 'input') { if (maybeFileOrInput.type && maybeFileOrInput.type.toLowerCase() === 'file') { return true; } } } return false; }, ie: function() { return navigator.userAgent.indexOf('MSIE') !== -1; }, ie10: function() { return navigator.userAgent.indexOf('MSIE 10') !== -1; }, safari: function() { var _ref2; return (_ref2 = navigator.vendor) != null ? _ref2 : navigator.vendor.indexOf('Apple') !== -1; }, chrome: function() { var _ref2; return (_ref2 = navigator.vendor) != null ? _ref2 : navigator.vendor.indexOf('Google') !== -1; }, firefox: function() { var _ref2; return (_ref2 = navigator.userAgent.indexOf('Mozilla') !== -1 && navigator.vendor) != null ? _ref2 : navigator.vendor === ''; }, windows: function() { return navigator.platform === 'Win32'; }, android: function() { return navigator.userAgent.toLowerCase().indexOf('android') !== -1; }, setCookie: function(name, value, days) { var date, expires; date = new Date(); expires = ""; if (days) { date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = "; expires=" + (date.toGMTString()); } return document.cookie = "" + name + "=" + value + expires + "; path=/"; }, getCookie: function(name) { var c, ca, nameEQ, _i, _len; nameEQ = "" + name + "="; ca = document.cookie.split(';'); for (_i = 0, _len = ca.length; _i < _len; _i++) { c = ca[_i]; if (c.replace(/^\s+/, '').indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; }, deleteCookie: function(name) { return this.setCookie(name, '', -1); }, getCookieNames: function(regexp) { var cookie, cookieNames, cookies, equalsIdx, _i, _len; cookies = document.cookie.split(';'); cookieNames = []; for (_i = 0, _len = cookies.length; _i < _len; _i++) { cookie = cookies[_i]; cookie = cookie.trim(); equalsIdx = cookie.indexOf('='); if (cookie.match(regexp)) { cookieNames.push(cookie.substr(0, equalsIdx)); } } return cookieNames; }, areCookiesEnabled: function() { var name, randNum; randNum = Math.random() * 100000; name = "AnjLabCookieTest:" + randNum; this.setCookie(name, 1); if (this.getCookie(name)) { this.deleteCookie(name); return true; } else { return false; } } }; }).call(this); ;TI"dependency_digest;F"%3ef97d9e44461b4fc1f87572ea2c3056I"required_paths;F[I"S/Users/yury/Work/uploads/app/assets/javascripts/anjlab/uploads/utils.js.coffee;TI"dependency_paths;F[{I" path;FI"S/Users/yury/Work/uploads/app/assets/javascripts/anjlab/uploads/utils.js.coffee;TI" mtime;FI"2013-01-27T19:23:44+04:00;FI" digest;F"%9a01d6133bfdd73e4004ad0182775623I" _version;F"%6776f581a4329e299531e1d52aa59832