mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
changed example
This commit is contained in:
parent
8425831450
commit
d3e7389c57
1 changed files with 3 additions and 5 deletions
|
|
@ -35,15 +35,13 @@ NotificationCenter.prototype.alert = function(a) {
|
||||||
var factory = new Factory();
|
var factory = new Factory();
|
||||||
|
|
||||||
var player = factory.new(Player, "jeena");
|
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
|
Lala:chuck.js jeena$ node Factory.js
|
||||||
Created NotificationCenter
|
foo
|
||||||
Created Player
|
|
||||||
Player.notificationCenter [object Object]
|
|
||||||
Player.name jeena
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue