var AutoRefresh = {
  counter : 0,
  timesDuration : 5,
  timerId : null,
  autoRefreshIsRunning : false,
  runProcess : function() {
        AutoRefresh.counter++;
        AutoRefresh.autoRefreshIsRunning = true;
        . . .
  },
  stopProcess : function() {      
        AutoRefresh.counter = 0;
        AutoRefresh.autoRefreshIsRunning = false;
        . . .
  }
};
Friday, 19 April 2013
An Example of Object Oriented in JavaScript
Below is an example of implementing object oriented in JavaScript:
Labels:
JavaScript
Subscribe to:
Post Comments (Atom)
 
 

No comments:
Post a Comment