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

## Statements: 85.71% (6 / 7) Branches: 100% (0 / 0) Functions: 12.5% (1 / 8) Lines: 85.71% (6 / 7) Ignored: none

All files » lib/scope/ » 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
    341

    1
    265
    265
    265

    1

     var protoclass = require("protoclass");

    function BaseScope (context, parent) {
      this.context = context;
      this.parent  = parent;
      this.watcher = this;
    }

    module.exports = protoclass(BaseScope, {
      __isScope: true,
      get: function (path) {
        // override me
      },
      set: function (path, value) {
        // override me
      },
      watch: function (path, listener) {
        return this.watcher.watchProperty(this.context, path, listener);
      },
      watchProperty: function (target, path, listener) {
        // override me
      },
      watchColletion: function (target, operation, listener) {
        // override me
      },
      child: function (context) {
        // override me
      },
      dispose: function () {

      }
    });