Sha256: 9f1ff7634118acce14a1e59468b5e0b6753ff47eefb0f6ee164b94adf70ef9c8

Contents?: true

Size: 627 Bytes

Versions: 5

Compression:

Stored size: 627 Bytes

Contents

var System = function () {};

System.prototype.retrieveLocale = function (lang) {
	return this.locales[lang];
};

System.prototype.retrieveItem = function (id) {
	return this.items[id];
};

System.prototype.getAbbreviations = function (context, variable) {
	return (this.abbreviations[context] || {})[variable];
};

System.prototype.update = function (attributes) {
	var name;	
	for (name in attributes) {
		if (attributes.hasOwnProperty(name)) {
			this[name] = attributes[name];
		}
	}
	return this;
};

var system = new System(), citeproc = null;
system.update({ abbreviations: { 'default': {} }, locales: {}, items: {} });

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
citeproc-js-0.0.8 lib/citeproc/js/support/system.js
citeproc-js-0.0.6 lib/citeproc/js/support/system.js
citeproc-js-0.0.2 lib/citeproc/js/support/system.js
citeproc-js-0.0.1 lib/citeproc/js/support/system.js
citeproc-js-0.0.1.pre.1 lib/citeproc/js/support/system.js