cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/2] git commit: removing window from target
Date Wed, 09 Apr 2014 01:55:29 GMT
removing window from target


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

Branch: refs/heads/browserify
Commit: 909aa103a8c4a5b4d5cca5a6690fb573d1d41d29
Parents: 6387e61
Author: Anis Kadri <anis@apache.org>
Authored: Tue Apr 8 18:55:23 2014 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Tue Apr 8 18:55:23 2014 -0700

----------------------------------------------------------------------
 src/util/prepare-namespace.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/909aa103/src/util/prepare-namespace.js
----------------------------------------------------------------------
diff --git a/src/util/prepare-namespace.js b/src/util/prepare-namespace.js
index 3c19d13..2cb9560 100644
--- a/src/util/prepare-namespace.js
+++ b/src/util/prepare-namespace.js
@@ -1,5 +1,8 @@
 // FIXME this is extremely guettho
 module.exports = function(target, method) {
+  
+  target = target.replace(/^window(\.)?/, '');
+
   var lastDot = target.lastIndexOf('.');
   var namespace = target.substr(0, lastDot);
   var lastName = target.substr(lastDot + 1);


Mime
View raw message