Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myClass = Class.create({
- initialize: function() {
- $('container').on('click', 'div[id^="some_prefix_"]', this.handler.bindAsEventListener(this));
- },
- handler: function(e, elem) {
- console.log(e);
- console.log(elem);
- console.log(this);
- }
- });
Add Comment
Please, Sign In to add comment