Page MenuHomePhabricator

OOjs: Provide oo.initClass() to initialize .static and potentially other things in the future
Closed, ResolvedPublic

Description

Right now we do ClassName.static = {}; in base classes, and rely on the fact that oo.inheritClass() does this for us for non-base classes. That's ugly. Instead, we should wrap .static = {}; in a function that we call on every class.


Version: unspecified
Severity: enhancement

Details

Reference
bz63250

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:56 AM
bzimport added a project: OOjs core.
bzimport set Reference to bz63250.