Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var popup = {
- init: function()
- {
- this.element = somelib.createElement('div');
- // ...
- this.element.addEventListener('click', function()
- {
- this.hide();
- }.bind(this));
- },
- show: function(){},
- hide: function(){}
- };
- popup.init();
- var superPopup = somelib.extend(popup, {
- hide: function()
- {
- // ...
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement