         id: proposedId
         url: options.location || @location
       successCallbacks: [setIdOnSuccess, callbacks.onSuccess]
+      failureCallbacks: [callbacks.onFailure]
+
+  unload: (options={}, callbacks={}) ->
+    steroids.debug "unload called for WebView #{JSON.stringify @}"
+
+    steroids.nativeBridge.nativeCall
+      method: "unloadLayer"
+      parameters:
+        id: @id
+      successCallbacks: [callbacks.onSuccess]
       failureCallbacks: [callbacks.onFailure]
 
   getParams: ()->

    else
      options.location

    if @location.indexOf("://") == -1 # if a path
      if window.location.href.indexOf("file://") == -1 # if not currently on file protocol
        @location = "#{window.location.protocol}//#{window.location.host}/#{@location}"

  preload: (options={}, callbacks={}) ->
    steroids.debug "preload called for WebView #{JSON.stringify @}"

    proposedId = options.id || @id

    setIdOnSuccess = () =>
      steroids.debug "preload success: setting id"
