Sha256: 459dfd6e7c236d5d1228885b54af1164cf7934ec4bce54ce4bf66affd23fdd38
Contents?: true
Size: 428 Bytes
Versions: 25
Compression:
Stored size: 428 Bytes
Contents
var Shop = {}; document.observe("dom:loaded", function() { shop = new Shop(); Event.addBehavior({ '.popup .close:click' : function(e) { Element.closePopup($(this)); } }); }); var Shop = Class.create({ getRoute: function(route, format, id) { format = format || 'js'; id = id || null; result = id ? ROUTES[route].replace(/(:\w+)/, id) : ROUTES[route]; return (result + '.' + format); } });
Version data entries
25 entries across 25 versions & 1 rubygems