{"action":"closed","issue":{"url":"https://api.github.com/repos/wyuenho/backgrid/issues/600","repository_url":"https://api.github.com/repos/wyuenho/backgrid","labels_url":"https://api.github.com/repos/wyuenho/backgrid/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/wyuenho/backgrid/issues/600/comments","events_url":"https://api.github.com/repos/wyuenho/backgrid/issues/600/events","html_url":"https://github.com/wyuenho/backgrid/issues/600","id":108727942,"number":600,"title":"How to subclass Backgrid.Cell","user":{"login":"marseille","id":347565,"avatar_url":"https://avatars.githubusercontent.com/u/347565?v=3","gravatar_id":"","url":"https://api.github.com/users/marseille","html_url":"https://github.com/marseille","followers_url":"https://api.github.com/users/marseille/followers","following_url":"https://api.github.com/users/marseille/following{/other_user}","gists_url":"https://api.github.com/users/marseille/gists{/gist_id}","starred_url":"https://api.github.com/users/marseille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marseille/subscriptions","organizations_url":"https://api.github.com/users/marseille/orgs","repos_url":"https://api.github.com/users/marseille/repos","events_url":"https://api.github.com/users/marseille/events{/privacy}","received_events_url":"https://api.github.com/users/marseille/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T19:18:26Z","updated_at":"2016-06-17T17:59:31Z","closed_at":"2016-06-17T17:59:30Z","body":"Hello,\r\n\r\nI want to subclass Backgrid.Cell so that a particular piece of code is run for every Cell extended off of Backgrid.Cell.\r\n\r\nI use basic types like String and Number, and have extended my own Cell classes for types like Date and Select.\r\n\r\nI would like the same piece of code to run no matter what cell I use, be it my implemented cell, a Boolean cell, a URI cell, whatever.\r\n\r\nI've tried this - \r\n\r\n``` javascript\r\nBackgrid.Cell = Backgrid.Cell.extend({\r\n  initialize: function(opts){          \r\n    Backgrid.Cell.prototype.initialize.apply(this, arguments);\r\n      console.log(\"hello\");\r\n    }        \r\n });      \r\n```\r\n\r\nHello is never printed though. Extending the other cell types in this manner has worked. \r\n\r\nHow do I extend and replace the functionality of Backgrid.Cell ?"}}
{"actor":{"display_login":"wyuenho"}}