         @location = "#{window.location.protocol}//#{window.location.host}/#{@location}"
 
     @params = @getParams()
-
-    if options.allowedRotations?
-      @setAllowedRotations(options.allowedRotations)
 
   preload: (options={}, callbacks={}) ->
     steroids.debug "preload called for WebView #{JSON.stringify @}"

      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"

    else
      options.degrees

    orientation = Screen.mapDegreesToOrientations degrees

    steroids.nativeBridge.nativeCall
      method: "setOrientation"
