Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

js - add bmoon.utl.reload()

  • Loading branch information...
commit 130f1fe390d3445d3f834c47dad3d0e2abe1b280 1 parent 407cf9e
@bigml bigml authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/js/bmoon.js
View
5 lib/js/bmoon.js
@@ -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],
Please sign in to comment.
Something went wrong with that request. Please try again.