e7e0ac569bd6c22a42fa79982044b8d2fa746376
[wl-mobile.git] / assets / www / js / assetcopy.js
1 function AssetCopy() {
2  
3 }
4  
5 AssetCopy.prototype.copy = function(asset, target, overwrite, win, fail) {
6         if(overwrite==false) overwrite="false";
7         else overwrite="true";
8         PhoneGap.exec(win, fail, "AssetCopy", "copy", [asset, target, overwrite]);
9 };
10  
11 PhoneGap.addConstructor(function() {
12         PhoneGap.addPlugin("assetcopy", new AssetCopy());
13         PluginManager.addService("AssetCopy","pl.org.nowoczesnapolska.wlmobi.AssetCopy");
14 });