     else
       options.degrees
 
-    orientation = @mapDegreesToOrientations degrees
+    orientation = Screen.mapDegreesToOrientations degrees
 
     steroids.nativeBridge.nativeCall
       method: "setOrientation"

      successCallbacks: [callbacks.onSuccess]
      failureCallbacks: [callbacks.onFailure]

  @mapDegreesToOrientations: (degrees) ->
    if degrees == 0 or degrees == "0"
      "portrait"
    else if degrees == 180 or degrees == "180"
      "portraitupsidedown"
    else if degrees == -90 or degrees == "-90"
      "landscapeleft"
    else if degrees == 90 or degrees == "90"
      "landscaperight"
    else
      return degrees

  # Deprecated. should use steroids.screen.setAllowedRotations() instead.
  setAllowedRotations: (options={}, callbacks={}) ->
    allowedRotations = if options.constructor.name == "Array"

        @location = "#{window.location.protocol}//#{window.location.host}/#{@location}"

    @params = @getParams()

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