Observer Object


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Observer = new function() {
  2. var obj = this; // function reference
  3. var state1 = null; // track application state 1
  4. var state2 = null; // track application state 2
  5. }

Report this snippet


Comments


You need to login to view comments.