12345 |
- // -- Sammy.js -- /plugins/sammy.path_location_proxy.js
- // http://sammyjs.org
- // Version: 0.7.6
- // Built: 2014-08-26 10:45:33 +0300
- (function(factory){if(typeof define==="function"&&define.amd){define(["jquery","sammy"],factory)}else{(window.Sammy=window.Sammy||{}).PathLocationProxy=factory(window.jQuery,window.Sammy)}})(function($,Sammy){Sammy.PathLocationProxy=function(app){this.app=app};$.extend(Sammy.PathLocationProxy.prototype,{bind:function(){},unbind:function(){},getLocation:function(){return[window.location.pathname,window.location.search].join("")},setLocation:function(new_location){return window.location=new_location}});return Sammy.PathLocationProxy});
|