Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix problem with set history fn name

  • Loading branch information...
commit 4171b88b95a666fa67445b07131f41b57a7f63cf 1 parent 9f6c67e
@smparkes authored
View
2  Wakefile
@@ -2,7 +2,7 @@
ignore "src/parser/html5*"
-jslintrb "src/**/*"
+# jslintrb "src/**/*"
watch %r{(^src/.*)\.js$} do
cmd = "rake johnson:compile"
View
2  lib/envjs.rb
@@ -1,6 +1,6 @@
module Envjs
- VERSION = "0.3.0"
+ VERSION = "0.3.1"
def self.js_exception_stack e
result = %(Exception: )+e.to_s
View
2  src/window/location.js
@@ -64,7 +64,7 @@ $w.__defineGetter__("location", function(url){
_hash = _hash.indexOf('#')===0?_hash:"#"+_hash;
$location = this.protocol + this.host + this.pathname +
this.search + _hash;
- setHistory(_hash, "hash");
+ __setHistory__(_hash, "hash");
},
get host(){
return this.hostname + ((this.port !== "")?":"+this.port:"");
View
8 test/dmathieu/index.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ </head>
+ <body>
+
+ <a href="#" id="click" onclick="window.location.hash = 'test'; return false;">Click me !</a>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.