Skip to content

Commit

Permalink
Add clone for passing Uri's back to JS
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmark committed Jan 4, 2013
1 parent e245fc1 commit 0f497ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Language/Fay/Uri.hs
Expand Up @@ -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
Expand Down

0 comments on commit 0f497ed

Please sign in to comment.