Sha256: e457ef94fb382bf6d9485c75aca83209a5893a0c3816c94066b700560ce9e0ce

Contents?: true

Size: 1.48 KB

Versions: 8

Compression:

Stored size: 1.48 KB

Contents

var JSONP=function(){var n=0,k,l={};function o(c,b){var a,f,h;a=document.createElement('script');f=false;a.src=c;a.async=true;h=b||l.error;if(typeof h==='function'){a.onerror=function(d){h({url:c,event:d})}}a.onload=a.onreadystatechange=function(){if(!f&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){f=true;a.onload=a.onreadystatechange=null;if(a&&a.parentNode){a.parentNode.removeChild(a)}}};if(!k){k=document.getElementsByTagName('head')[0]}k.appendChild(a)}function i(d){return encodeURIComponent(d)}function j(c,b,a,f){var h=(c||'').indexOf('?')===-1?'?':'&',m,g;f=(f||l['callbackName']||'callback');g=f+"_0"+(++n);b=b||{};for(m in b){if(b.hasOwnProperty(m)){h+=i(m)+"="+i(b[m])+"&"}}window[g]=function(d){a(d);try{delete window[g]}catch(e){}window[g]=null};o(c+h+f+'='+g);return g}function p(d){l=d}return{get:j,init:p}};if(window.Transistor===undefined){window.Transistor={}}(function(p){var q=(function(){return function(f,h,m){var g,n,k,l,o,i,j;g=JSONP();n=function(d,c,b){j(i('set',d),{collection:c},b)};k=function(d,c,b){j(i('insert',d),{entry:c},b)};l=function(d,c,b,a){j(i('update',d),{id:c,entry:b},a)};o=function(d,c,b){j(i('remove',d),{id:c},b)};i=function(d,c){var b=f+'/command/'+d+'/'+h+'/'+m;if(c===undefined){return b}else{return b+'/'+c}};j=function(c,b,a){if(a===undefined){a=function(d){}}if(b===undefined){g.get(c,{},a)}else{g.get(c,{data:JSON.stringify(b)},a)}};this.set=n;this.insert=k;this.update=l;this.remove=o}}());p.Control=q}(window.Transistor));

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
transistor-0.1.13 build/min/transistor-control.js
transistor-0.1.12 build/min/transistor-control.js
transistor-0.1.11 build/min/transistor-control.js
transistor-0.1.10 build/min/transistor-control.js
transistor-0.1.9 build/min/transistor-control.js
transistor-0.1.8 build/min/transistor-control.js
transistor-0.1.7 build/min/transistor-control.js
transistor-0.1.6 build/min/transistor-control.js