element-data-store
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "element-data-store", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Simple library that provides an api to stores data for an element (similar to $.data in jQuery)", | ||
@@ -5,0 +5,0 @@ "main": "src/element-data-store.js", |
@@ -1,14 +0,16 @@ | ||
(function (window, document, undefined, factory) { | ||
(function (factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(function() { | ||
return factory(window, document, undefined); | ||
return factory(); | ||
}); | ||
} | ||
else if (typeof exports === 'object') { | ||
module.exports = factory; | ||
module.exports = factory(); | ||
} | ||
else { | ||
window.elementDataStore = factory(window, document, undefined); | ||
window.elementDataStore = factory(); | ||
} | ||
})(window, document, undefined, function (window, document, undefined) { | ||
})(function () { | ||
var instance; | ||
function ElementDataStore() { | ||
@@ -65,3 +67,5 @@ this.dict = {}; | ||
return new ElementDataStore(); | ||
}); | ||
return function () { | ||
return (instance = (instance || new ElementDataStore())); | ||
}; | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3948
223566