Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function ObservableArray() {
  2. this.name = 'Init';
  3. };
  4.  
  5. ObservableArray.prototype.nameChange = function(name) {
  6. this.dispatchEvent({
  7. type: 'changeBefore',
  8. data: this,
  9. });
  10. this.name = name;
  11. this.dispatchEvent({
  12. type: 'change',
  13. data: this,
  14. });
  15. }
  16.  
  17. h5.mixin.eventDispatcher.mix(ObservableArray.prototype);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement