From d3e7389c57985e654646721ad2bac178aa2baa73 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Thu, 19 Jul 2012 15:39:36 +0200 Subject: [PATCH] changed example --- Factory.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Factory.js b/Factory.js index 9b34132..b67f223 100644 --- a/Factory.js +++ b/Factory.js @@ -35,15 +35,13 @@ NotificationCenter.prototype.alert = function(a) { var factory = new Factory(); var player = factory.new(Player, "jeena"); -console.log(player.notificationCenter); + +player.factory.new(Player, "logsol").notificationCenter.alert("foo"); /* Lala:chuck.js jeena$ node Factory.js -Created NotificationCenter -Created Player -Player.notificationCenter [object Object] -Player.name jeena +foo */ \ No newline at end of file