From 4c7134419292002e1ff4c6b6100a7a9ec37ced43 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 11 Dec 2014 22:38:41 -0500 Subject: fishbone working again not sure what i did lol --- js/tool.js | 2 +- js/ui/controls.js | 6 ++++++ js/ui/selection.js | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/tool.js b/js/tool.js index e1c6adb..190f29f 100644 --- a/js/tool.js +++ b/js/tool.js @@ -20,5 +20,5 @@ var Tool = Model({ } }) -var Checkbox = Tool({ +var Checkbox = Tool.extend({ }) diff --git a/js/ui/controls.js b/js/ui/controls.js index ecaa875..293cd1d 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -64,6 +64,12 @@ var controls = (function(){ controls.grid.use = function(){ document.body.classList.toggle('grid') } + controls.grid.show = function(){ + document.body.classList.add('grid') + } + controls.grid.hide = function(){ + document.body.classList.remove('grid') + } ClipboardTool = Tool.extend({ blur: function(){ diff --git a/js/ui/selection.js b/js/ui/selection.js index 6f8f7db..cbd15bf 100644 --- a/js/ui/selection.js +++ b/js/ui/selection.js @@ -125,6 +125,7 @@ var selection = (function(){ function show () { selecting = true + controls.grid.show() } function hide () { reset() -- cgit v1.2.3-70-g09d2