![JAR search and dependency download from the Maven repository](/logo.png)
scales.di.Scope.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scales_2.11 Show documentation
Show all versions of scales_2.11 Show documentation
A Web Component based UI framework written in Scala.js.
The newest version!
package scales.di
import org.scalajs.dom.Element
trait Scope {
def parent: Option[Scope]
def resolve[A](name: Option[String] = None): Option[A] = {
doResolve[A](name) match {
case dep @ Some(_) => dep
case None => parent.map(_.resolve[A](name)).flatten
}
}
protected def doResolve[A](name: Option[String]): Option[A]
}
object Scope {
def apply(element: Element): Scope = ???
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy