Skip to content

Conversation

@sjrd
Copy link
Member

@sjrd sjrd commented Aug 27, 2015

The method js.constructorOf[JSClass] returns the JavaScript constructor function for the class JSClass. The latter must be a class (not trait nor object) extending js.Any. It may be a native JS class or a Scala.js-defined JS class. The restrictions on what types can be used are enforced at compile-time.

@sjrd
Copy link
Member Author

sjrd commented Aug 27, 2015

Review by @nicolasstucki

@scala-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):

https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2147/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2773/
Test FAILed.

@sjrd sjrd force-pushed the js-constructor-of branch from 5b67193 to 344a260 Compare August 27, 2015 13:05
…tructor.

The method `js.constructorOf[JSClass]` returns the JavaScript
constructor function for the class `JSClass`. The latter must
be a class (not trait nor object) extending js.Any. It may be
a native JS class or a Scala.js-defined JS class. The restrictions
on what types can be used are enforced at compile-time.
@nicolasstucki
Copy link
Contributor

LGTM

@scala-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):

https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/2148/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/2774/
Test PASSed.

sjrd added a commit that referenced this pull request Aug 27, 2015
Fix #1870: Add js.constructorOf[JSClass] to retrieve its constructor.
@sjrd sjrd merged commit 12f1580 into scala-js:master Aug 27, 2015
@sjrd sjrd deleted the js-constructor-of branch August 27, 2015 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants