You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/06/14 01:46:23 UTC

[7/9] git commit: adding configurable attribute

adding configurable attribute


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/c0eee276
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/c0eee276
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/c0eee276

Branch: refs/heads/master
Commit: c0eee276599251a0a003c5df0159fbea47d52ea4
Parents: 523392f
Author: Anis Kadri <an...@apache.org>
Authored: Tue Jun 10 17:20:37 2014 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Tue Jun 10 17:20:37 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/plugman.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/c0eee276/cordova-lib/src/plugman/plugman.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/plugman.js b/cordova-lib/src/plugman/plugman.js
index 9b8fdad..8ff8c82 100644
--- a/cordova-lib/src/plugman/plugman.js
+++ b/cordova-lib/src/plugman/plugman.js
@@ -40,6 +40,7 @@ function addProperty(o, symbol, modulePath, doWrap) {
     } else {
         // The top-level plugman.foo
         Object.defineProperty(o, symbol, {
+            configurable: true,
             get : function() { return val = val || require(modulePath); },
             set : function(v) { val = v; }
         });
@@ -47,6 +48,7 @@ function addProperty(o, symbol, modulePath, doWrap) {
 
     // The plugman.raw.foo
     Object.defineProperty(o.raw, symbol, {
+        configurable: true,
         get : function() { return val = val || require(modulePath); },
         set : function(v) { val = v; }
     });
@@ -63,6 +65,7 @@ plugman = {
 addProperty(plugman, 'install', './install', true);
 addProperty(plugman, 'uninstall', './uninstall', true);
 addProperty(plugman, 'fetch', './fetch', true);
+addProperty(plugman, 'prepare', './prepare', true);
 addProperty(plugman, 'config', './config', true);
 addProperty(plugman, 'owner', './owner', true);
 addProperty(plugman, 'adduser', './adduser', true);