Skip to content
Browse files

Add clone for passing Uri's back to JS

  • Loading branch information...
1 parent e245fc1 commit 0f497ed82a39ce6b238eeffb679a7fc45927886a @bergmark bergmark committed Jan 4, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Language/Fay/Uri.hs
View
4 src/Language/Fay/Uri.hs
@@ -26,6 +26,10 @@ newUri = ffi "new window['Uri'](%1)"
toString :: Uri -> String
toString = ffi "%1['toString']()"
+-- If we ever want to pass a Uri back to JS we need to make sure we keep persistance internally.
+clone :: Uri -> Uri
+clone = ffi "%1['clone']()"
+
-- | Getters
-- All getters (except query! But lets be consistent) may return null if the value isn't set so we use

0 comments on commit 0f497ed

Please sign in to comment.
Something went wrong with that request. Please try again.