Trait/Object

scala.scalajs.js

ThisFunction

Related Docs: object ThisFunction | package js

Permalink

trait ThisFunction extends Function

A JavaScript function where this is considered as a first parameter.

Annotations
@RawJSType() @native()
See also

Calling JavaScript from Scala.js

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThisFunction
  2. Function
  3. Object
  4. Any
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: scala.Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to any2stringadd[ThisFunction] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ThisFunction, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to ArrowAssoc[ThisFunction] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: scala.Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def bind(thisArg: Any, argArray: Any*): Dynamic

    Permalink

    The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.

    The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.

    MDN

    Definition Classes
    Function
  8. def call(thisArg: Any, argArray: Any*): Dynamic

    Permalink

    The call() method calls a function with a given this value and arguments provided individually.

    The call() method calls a function with a given this value and arguments provided individually.

    You can assign a different this object when calling an existing function. this refers to the current object, the calling object. With call, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.

    apply is very similar to call(), except for the type of arguments it supports. You can use an arguments array instead of a named set of parameters. With apply, you can use an array literal, for example,

    fun.apply(this, ['eat', 'bananas'])

    or an Array object, for example,

    fun.apply(this, new Array('eat', 'bananas')).

    MDN

    Scala.js-specific note: call() can be used instead of the apply() method available in JavaScript. Simply use the :_* notation to expand a Seq as variadic arguments, e.g.,

    someFun.call(thisArg, argSeq: _*)
    Definition Classes
    Function
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (ThisFunction) ⇒ Boolean, msg: ⇒ scala.Any): ThisFunction

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to Ensuring[ThisFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ThisFunction) ⇒ Boolean): ThisFunction

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to Ensuring[ThisFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ scala.Any): ThisFunction

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to Ensuring[ThisFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ThisFunction

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to Ensuring[ThisFunction] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: scala.Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to StringFormat[ThisFunction] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hasOwnProperty(v: String): Boolean

    Permalink

    Tests whether this object has the specified property as a direct property.

    Tests whether this object has the specified property as a direct property.

    Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.

    MDN

    Definition Classes
    Object
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isPrototypeOf(v: Object): Boolean

    Permalink

    Tests whether this object is in the prototype chain of another object.

    Tests whether this object is in the prototype chain of another object.

    Definition Classes
    Object
  23. val length: Int

    Permalink

    length is a property of a function object, and indicates how many arguments the function expects, i.e.

    length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. By contrast, arguments.length is local to a function and provides the number of arguments actually passed to the function.

    MDN

    Definition Classes
    Function
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def propertyIsEnumerable(v: String): Boolean

    Permalink

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.

    MDN

    Definition Classes
    Object
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def valueOf(): scala.Any

    Permalink
    Definition Classes
    Object
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def [B](y: B): (ThisFunction, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ThisFunction to ArrowAssoc[ThisFunction] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Function

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from scala.Any

Inherited by implicit conversion any2stringadd from ThisFunction to any2stringadd[ThisFunction]

Inherited by implicit conversion StringFormat from ThisFunction to StringFormat[ThisFunction]

Inherited by implicit conversion Ensuring from ThisFunction to Ensuring[ThisFunction]

Inherited by implicit conversion ArrowAssoc from ThisFunction to ArrowAssoc[ThisFunction]

Ungrouped