element-data-store
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,2 +0,2 @@ | ||
/*! element-data-store | license: MIT | version: 0.0.5 | build date: 2015-08-17 */ | ||
!function(a){"function"==typeof define&&define.amd?define(function(){return a()}):"object"==typeof exports?module.exports=a():window.elementDataStore=a()}(function(){function a(){this.dict={},this.uuid=1,this.namespace="DataStore"}var b;return a.prototype={get:function(a,b){return"undefined"==typeof b?this.retrieveStore(a):this.retrieveStore(a)[b]||null},set:function(a,b,c){return this.retrieveStore(a)[b]=c,c},remove:function(a,b){if("undefined"!=typeof b){var c=this.retrieveStore(a);c[b]&&delete c[b]}else{var d=a[this.namespace];d&&(delete this.dict[d],a[this.namespace]=null)}},retrieveStore:function(a){var b=this.namespace,c=a[b];return c||(c=a[b]=this.uuid++,this.dict[c]={}),this.dict[c]||{}}},function(){return b=b||new a}}); | ||
/*! element-data-store | license: MIT | version: 0.0.6 | build date: 2015-08-17 */ | ||
!function(a){"function"==typeof define&&define.amd?define(function(){return a()}):"object"==typeof exports?module.exports=a():window.elementDataStore=a()}(function(){function a(){this.dict={},this.uuid=1,this.namespace="DataStore"}var b;return a.prototype={get:function(a,b){return"undefined"==typeof b?this.retrieveStore(a):this.retrieveStore(a)[b]||null},set:function(a,b,c){return this.retrieveStore(a)[b]=c,c},remove:function(a,b){if("undefined"!=typeof b){var c=this.retrieveStore(a);c[b]&&delete c[b]}else{var d=a[this.namespace];d&&(delete this.dict[d],a[this.namespace]=null)}},retrieveStore:function(a){var b=this.namespace,c=a[b];return c||(c=a[b]=this.uuid++,this.dict[c]={}),this.dict[c]||{}}},b=b||new a}); |
{ | ||
"name": "element-data-store", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"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", |
@@ -66,6 +66,4 @@ (function (factory) { | ||
}; | ||
return function () { | ||
return (instance = (instance || new ElementDataStore())); | ||
}; | ||
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
223508
3946