Categories

ep.local

Categories: Core | Properties of the global ep object

ep.local

Plugin: ep.core

Description: Stack of variables and methods for inline javascript.

  • ep.local

    version added: 6.11.0

The code convention for the ep framework, doesn't allow to write temporarily used variables or methods on the window object.

Don't write temporarily used variables or methods on a global. If it necessary use the ep.local object.
  • Use a function direct in href attribute.

    HTML:
    <a href="javascript:ep.local.foo();">foo</a>
    
    Code:
    ep.local.foo = function(){
    
    }