# Code coverage report for lib/browser.js

## Statements: 100% (11 / 11) Branches: 100% (2 / 2) Functions: 100% (1 / 1) Lines: 100% (11 / 11) Ignored: 4 statements, 1 function, 1 branch

All files » lib/ » browser.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
    741
    1
    1
    1

    1

    1

    1

    1

    1
    1
    1

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

    template.parser = parser;

    var paperclip = module.exports = {

      /**
       */

      accessors: defaults.accessors,

      /**
       */

      runloop: defaults.runloop,

      /**
       */

      nodeFactory: nofactor,

      /**
       * web component base class
       */

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

      /**
       */

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

      /**
       * template factory
       */

      template  : template,

      /**
       */

      components : defaults.components,

      /**
       */

      attributes : defaults.attributes,

      /**
       */

      modifiers: defaults.modifiers,

      /**
       */

      parse: parser.parse
    };

    /* istanbul ignore next */
    Iif (typeof window !== "undefined") {

      window.paperclip = paperclip;

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