Permalink
Browse files

Updated to work with cordova 2.0.0

  • Loading branch information...
1 parent a74af6d commit 8e1efd999365f79d4cba5eee10a548d5fb5780aa @bperin bperin committed Aug 23, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 Android/Share/share.js
View
9 Android/Share/share.js
@@ -15,6 +15,9 @@ Share.prototype.show = function(content, success, fail) {
}, 'Share', '', [content]);
};
-cordova.addConstructor(function(){
- cordova.addPlugin('share', new Share());
-});
+if(!window.plugins) {
+ window.plugins = {};
+}
+if (!window.plugins.share) {
+ window.plugins.share = new Share();
+}

0 comments on commit 8e1efd9

Please sign in to comment.