eventualize
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
/*! eventualize 0.0.3, Copyright 2014 Kevin Goslar, see https://github.com/kevgo/eventualize */ | ||
(function(){var a;a=function(b){var c,d,e,f,g,h,i,j,k;for(k=a.categorize_members(b),f=k[0],d=k[1],g=0,i=f.length;i>g;g++)for(e=f[g],h=0,j=d.length;j>h;h++)c=d[h],a.is_callback_for(c,e)&&b[e].on(a.callback_event_name(c,e),b[c]);return void 0},a.categorize_members=function(b){var c,d,e;e=[],c=[];for(d in b)switch(typeof b[d]){case"object":e.push(d);break;case"function":a.is_callback_method(d)&&c.push(d)}return[e,c]},a.is_callback_method=function(b){return a.string_starts_with(b,"on_")},a.is_callback_for=function(b,c){return a.string_starts_with(b,"on_"+c+"_")},a.callback_event_name=function(a,b){return a.substring(b.length+4)},a.string_starts_with=function(a,b){return a.substring(0,b.length)===b},"undefined"!=typeof module&&null!==module&&(module.exports=a),"undefined"!=typeof window&&null!==window&&(window.eventualize=a)}).call(this); | ||
/*! eventualize 0.0.5, copyright 2014 Kevin Goslar, see https://github.com/kevgo/eventualize */ | ||
(function(){var n;n=function(t){var e,r,i,o,a,c,l,s,u;for(u=n.categorize_members(t),o=u[0],r=u[1],a=0,l=o.length;l>a;a++)for(i=o[a],c=0,s=r.length;s>c;c++)e=r[c],n.is_callback_for(e,i)&&t[i].on(n.callback_event_name(e,i),t[e]);return void 0},n.categorize_members=function(t){var e,r,i;i=[],e=[];for(r in t)switch(typeof t[r]){case"object":i.push(r);break;case"function":n.is_callback_method(r)&&e.push(r)}return[i,e]},n.is_callback_method=function(t){return n.string_starts_with(t,"on_")},n.is_callback_for=function(t,e){return n.string_starts_with(t,"on_"+e+"_")},n.callback_event_name=function(n,t){return n.substring(t.length+4)},n.string_starts_with=function(n,t){return n.substring(0,t.length)===t},"undefined"!=typeof module&&null!==module&&(module.exports=n),"undefined"!=typeof window&&null!==window&&(window.eventualize=n)}).call(this); |
{ | ||
"name": "eventualize", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A JavaScript microlibrary for automatic event binding", | ||
"devDependencies": { | ||
"grunt": "latest", | ||
"grunt-contrib-clean": "latest", | ||
"grunt-contrib-coffee": "latest", | ||
"grunt-contrib-uglify": "latest", | ||
"coffee-script": "latest", | ||
"gulp": "latest", | ||
"gulp-util": "latest", | ||
"gulp-coffee": "latest", | ||
"gulp-coffeelint": "latest", | ||
"gulp-concat": "latest", | ||
"gulp-header": "latest", | ||
"gulp-uglify": "latest", | ||
"mycha": "latest" | ||
@@ -11,0 +15,0 @@ }, |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10550
10
3
9