MCPcopy Create free account
hub / github.com/NeXTs/Multiple.js / Multiple

Function Multiple

src/scripts/multiple.js:24–33  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

22 });
23
24 var Multiple = function(options) {
25 if( ! (this instanceof Multiple)) return new Multiple(options);
26
27 ['selector', 'background', 'affectText', 'opacity'].forEach(function(option) {
28 this[option] = options[option];
29 }.bind(this));
30
31 this.className = 'multiple-' + (isMobile ? 'mobile' : 'desktop') + (this.affectText ? '-text' : '');
32 this.update(this.background);
33 }
34
35 Multiple.prototype = {
36 constructor: Multiple,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected