Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var MM = MM || {};
- MM.InadequateResponse = function() {
- var self = this;
- var gridItem = $('.grid-item');
- gridItem.click(self.toggleGridContent);
- self.init = function() {
- gridItem.click(self.toggleGridContent);
- console.log('hi')
- }
- self.toggleGridContent = function(e) {
- e.stopPropagation();
- $(this).toggleClass('active');
- console.log(this);
- }
- };
- (function(){
- var InadequateResponse = new MM.InadequateResponse();
- InadequateResponse.init();
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement