register method

dynamic register(
  1. Function callback
)

Implementation

register(Function callback) {
  if (this.pluginCallbacks.indexOf(callback) == -1) {
    this.pluginCallbacks.add(callback);
  }

  return this;
}