mirror of
https://github.com/flarum/framework.git
synced 2025-03-30 19:55:29 +08:00

- Encapsulate app.current, app.previous in PageState objects - Reorganize Page classes to use one central base class in common Co-authored-by: Franz Liedke <franz@develophp.org>
7 lines
167 B
JavaScript
7 lines
167 B
JavaScript
/**
|
|
* Check if class A is the same as or a subclass of class B.
|
|
*/
|
|
export default function subclassOf(A, B) {
|
|
return A && (A === B || A.prototype instanceof B);
|
|
}
|