summaryrefslogtreecommitdiff
path: root/js/matrix.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/matrix.js')
-rw-r--r--js/matrix.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/matrix.js b/js/matrix.js
index 59bad86..bc09099 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -23,8 +23,7 @@ Matrix.prototype.rebuild = function (){
this.append()
this.bind()
this.generate && this.generate()
- // the focused character might disappear after resizing..
- focused = canvas.aa[0][0]
+ check_if_lost_focus()
}
Matrix.prototype.clone = function () {
var base = this
@@ -47,7 +46,7 @@ Matrix.prototype.assign = function (mat) {
})
this.append()
this.bind()
- focused = canvas.aa[0][0]
+ check_if_lost_focus()
return this
}