Plato on Github
Report Home
trait/lifecycle_callbacks.js
Maintainability
100.00
Lines of code
43
Difficulty
4.00
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; /** * @class Phalanx.Trait.LifecycleCallbacks */ Trait.LifecycleCallbacks = { /** * It is called the first instance is created. * @abstract */ onCreate: function() {}, /** * It is called as a common initialization process. (derived from Backbone) * In Layout, View, Component...After set initial element & Before event delegation. * @abstract */ initialize: function() {}, /** * It is called when new element assigned. * called only Layout, View, Component. * @abstract */ onSetElement: function() {}, /** * @abstract */ onPause: function() {}, /** * @abstract */ onResume: function() {}, /** * It is called when destroying the instance. * @abstract */ onDestroy: function() {} };