define(["Ti/_/Evented","Ti/_/lang"],function(t,n){function e(t){if(!t)throw new Error(o);return f[t]}function r(t,n){if(!t)throw new Error(o);n?f[t]=n:delete f[t],i()}function i(){localStorage.setItem(a,JSON.stringify(f))}var a="ti:clipboard",u="text/plain",o='Missing required argument "type"',c=localStorage.getItem(a),f=require.is(c,"String")&&JSON.parse(c)||{};return n.setObject("Ti.UI.Clipboard",t,{clearData:function(){f={},i()},clearText:function(){r(u)},getData:function(t){return e(t)||null},getText:function(){return e(u)||null},hasData:function(t){return!!e(t)},hasText:function(){return!!e(u)},setData:function(t,n){r(t,n)},setText:function(t){r(u,t)}})});