Permalink
Browse files

js - add bmoon.utl.reload()

  • Loading branch information...
1 parent 407cf9e commit 130f1fe390d3445d3f834c47dad3d0e2abe1b280 @bigml bigml committed May 16, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/js/bmoon.js
View
@@ -24,6 +24,11 @@ bmoon.utl = {
return r;
},
+ reload: function(url) {
+ var href = (url && url.length > 0) ? url: location.href;
+ location.href = href;
+ },
+
url: location.href,
urlclean: location.href.match(/^[^\?]*/)[0],

0 comments on commit 130f1fe

Please sign in to comment.