{I" class:ETI"ProcessedAsset;FI"logical_path;TI"fshop/show_via_path.js;FI" pathname;TI"Q/home/nofxx/projects/fshop/app/assets/javascripts/fshop/show_via_path.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+ÉçDRI" length;Ti¢I" digest;TI"%cbc41c28d958e8e962c5e5538d69758d;FI" source;TI"¢(function() { var data, doc, elPath, paths, _i, _len; doc = $(document); elPath = "([\\.]?[a-zA-Z0-9]+)"; paths = [ [ '\\.\\.', function() { return this.parent(); } ], [ "\\<" + elPath, function(path) { return this.prevAll("" + path + ":first"); } ], [ "\\>" + elPath, function(path) { return this.nextAll("" + path + ":first"); } ], [ '\\<', function() { return this.prev(); } ], [ '\\>', function() { return this.next(); } ], [ elPath, function(path) { return this.find(path); } ] ]; for (_i = 0, _len = paths.length; _i < _len; _i++) { data = paths[_i]; data.push(new RegExp("^" + data[0] + "/?")); } doc.on('click', '[data-show]', function(e) { var $el, foundMatch, length, match, originalPath, path, play, _j, _len1; e.preventDefault(); $el = $(this); path = originalPath = $el.data('show'); play = true; while (play) { foundMatch = false; for (_j = 0, _len1 = paths.length; _j < _len1; _j++) { data = paths[_j]; match = path.match(data[2]); if (match) { length = match[0].length; path = path.substr(length, path.length - length); $el = data[1].apply($el, match.slice(1)); foundMatch = true; break; } } if (path && !foundMatch) { console.warn("Não é possível encontrar o caminho para", originalPath, path, $el); break; } if (!path) { play = false; } } if (!play) { return $el.toggleClass('hidden'); } }); }).call(this); ;TI"dependency_digest;TI"%be1512eeb92b290140cd22f40e440730;FI"required_paths;T[I"Q/home/nofxx/projects/fshop/app/assets/javascripts/fshop/show_via_path.coffee;FI"dependency_paths;T[{I" path;TI"Q/home/nofxx/projects/fshop/app/assets/javascripts/fshop/show_via_path.coffee;FI" mtime;TI"2013-09-26T23:04:57-03:00;TI" digest;TI"%f911bf156bbac88c455e06022fed1352;FI" _version;TI"%ac1cd7cf9811f9938e2b8937c60a24e6;F