File: example.js

Recommend this page to a friend!
  Classes of Chi Hoang  >  Observer Pattern  >  example.js  >  Download  
File: example.js
Role: Example script
Content type: text/plain
Description: example script
Class: Observer Pattern
Manage list of observer objects
Author: By
Last change:
Date: 6 years ago
Size: 160 bytes
 

Contents

Class file image Download
window.onload = function ready ()
{
 cd = new Timer(new List());
 for (var i=0;i<10;i++) {
  cd.AddBox(new Subject(Math.floor((Math.random() * 10) + 1)));
 }
}