# Code coverage report for thinkjs/lib/Lib/Util/Behavior.js

## Statements: 100% (6 / 6) Branches: 100% (2 / 2) Functions: 66.67% (2 / 3) Lines: 100% (6 / 6) Ignored: none

All files » thinkjs/lib/Lib/Util/ » Behavior.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22

    2

    2

    143
    143
    287
    285

     /**
     * 行为类
     * @return {[type]} [description]
     */
    module.exports = Class(function(){
      'use strict';
      return {
        options: {}, //行为选项
        http: null,
        init: function(http){
          this.http = http;
          for(var name in this.options){
            if (C(name) !== undefined) {
              this.options[name] = C(name);
            }
          }
        },
        run: function(){

        }
      };
    });