source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/explore/js/amplify.core.min.js @ 598

Last change on this file since 598 was 598, checked in by vmipsl, 12 years ago

images

File size: 918 bytes
Line 
1/*!
2 * Amplify Core 1.0.0
3 *
4 * Copyright 2011 appendTo LLC. (http://appendto.com/team)
5 * Dual licensed under the MIT or GPL licenses.
6 * http://appendto.com/open-source-licenses
7 *
8 * http://amplifyjs.com
9 */
10(function(a,b){var c=[].slice,d={},e=a.amplify={publish:function(a){var b=c.call(arguments,1),e,f,g=0,h;if(!d[a])return!0;for(f=d[a].length;g<f;g++){e=d[a][g],h=e.callback.apply(e.context,b);if(h===!1)break}return h!==!1},subscribe:function(a,b,c,e){arguments.length===3&&typeof c=="number"&&(e=c,c=b,b=null),arguments.length===2&&(c=b,b=null),e=e||10;var f=0,g=a.split(/\s/),h=g.length;for(;f<h;f++){a=g[f],d[a]||(d[a]=[]);var i=d[a].length-1,j={callback:c,context:b,priority:e};for(;i>=0;i--)if(d[a][i].priority<=e){d[a].splice(i+1,0,j);return c}d[a].unshift(j)}return c},unsubscribe:function(a,b){if(!!d[a]){var c=d[a].length,e=0;for(;e<c;e++)if(d[a][e].callback===b){d[a].splice(e,1);break}}}}})(this)
Note: See TracBrowser for help on using the repository browser.