Skip to content
Permalink
Browse files
removing window from target
  • Loading branch information
Anis Kadri committed Apr 9, 2014
1 parent 6387e61 commit 909aa103a8c4a5b4d5cca5a6690fb573d1d41d29
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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);

0 comments on commit 909aa10

Please sign in to comment.