MCPcopy
hub / github.com/postcss/autoprefixer / cloneBefore

Method cloneBefore

lib/transition.js:181–185  ·  view source on GitHub ↗

* Add declaration if it is not exist

(decl, prop, value)

Source from the content-addressed store, hash-verified

179 * Add declaration if it is not exist
180 */
181 cloneBefore(decl, prop, value) {
182 if (!this.already(decl, prop, value)) {
183 decl.cloneBefore({ prop, value })
184 }
185 }
186
187 /**
188 * Check property for disabled by option

Callers 6

addMethod · 0.95
insertDeclFunction · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80
insertMethod · 0.80

Calls 1

alreadyMethod · 0.95

Tested by

no test coverage detected