# Code coverage report for lib/attributes/base.js

## Statements: 100% (11 / 11) Branches: 100% (0 / 0) Functions: 100% (4 / 4) Lines: 100% (11 / 11) Ignored: none

All files » lib/attributes/ » base.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    431

    1

    39
    39
    39
    39
    39
    39

    39

    1

    39

     var protoclass = require("protoclass");

    /**
     * attribute binding
     */

    function Attribute (options) {

      this.view          = options.view;
      this.node          = options.node;
      this.section       = options.section;
      this.key           = options.key;
      this.value         = options.value;
      this.nodeFactory   = this.view.template.nodeFactory;

      // initialize the DOM elements
      this.initialize();
    }

    /**
     */

    module.exports = protoclass(Attribute, {

      /**
       */

      initialize: function () {
      },

      /**
       */

      bind: function (context) {
        this.context = context;
      },

      /**
       */

      unbind: function () {
      }
    })