# Code coverage report for lib/index.js

## Statements: 55.56% (5 / 9) Branches: 50% (2 / 4) Functions: 0% (0 / 1) Lines: 55.56% (5 / 9) Ignored: none

All files » lib/ » index.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
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    761

    1
    1

    1

    1

     var nofactor    = require("nofactor"),
    parser          = require("./parser"),
    defaults        = require("./defaults");

    Eif (!process.browser) {
      require("./register");
    }

    var paperclip = module.exports = {

      /**
       */

      accessors: defaults.accessors,

      /**
       */

      runloop: defaults.runloop,

      /**
       */

      nodeFactory: nofactor,

      /**
       * web component base class
       */

      Component : require("./components/base"),

      /**
       */

      Attribute : require("./attributes/base"),

      /**
       * template factory
       */

      template  : require("./template"),

      /**
       */

      components : defaults.components,

      /**
       */

      attributes : defaults.attributes,

      /**
       */

      modifiers: defaults.modifiers,

      /**
       */

      parse: parser.parse
    };

    Iif (typeof window !== "undefined") {

      window.paperclip = paperclip;

      // no conflict mode. Release paperclip from global scope.
      window.paperclip.noConflict = function() {
        delete window.paperclip;
        return paperclip;
      };
    }