on_change_page_gridlabels = function (obj) { if (obj.get("gridlabels")) {
//Do something with a page } else {
//Stop doing something with a page } },
register_event_handlers = function () { on("change:page:gridlabels", function (obj) { on_change_page_gridlabels(obj); }); },