MCPcopy
hub / github.com/postcss/postcss / add

Method add

lib/lazy-result.js:250–253  ·  view source on GitHub ↗
(plugin, type, cb)

Source from the content-addressed store, hash-verified

248 prepareVisitors() {
249 this.listeners = {}
250 let add = (plugin, type, cb) => {
251 if (!this.listeners[type]) this.listeners[type] = []
252 this.listeners[type].push([plugin, cb])
253 }
254 for (let plugin of this.plugins) {
255 if (typeof plugin === 'object') {
256 for (let event in plugin) {

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected