Namespace: propPlugins

markus.propPlugins

Additional logic for the properties of the element. Plugins are called every time a property is passed to an element.

Example

function plugin(el, keyProp, allProps) {
 if(allProps[keyProp] === 'somevalue') {
   // do somethin
   return true // if true, the property will no longer be processed by other plugins.
 }
}

Methods

markus.propPlugins.fullsize (el, key, props) static

Replaces appW to application width and appH to application height.

Name Type Description
el Element
key string
props Object

markus.propPlugins.print (el, key, props) static

Print prop "consolelog" value to console. Return true

Name Type Description
el Element
key string
props Object