added bind() JS function got rid of all eval() calls
commite81529bd8d8b5b43282733c8f55e9b9459b4b063
authorAndreas Gohr <andi@splitbrain.org>
Sun, 18 Oct 2009 20:17:10 +0000 (18 22:17 +0200)
committerAndreas Gohr <andi@splitbrain.org>
Sun, 18 Oct 2009 20:17:10 +0000 (18 22:17 +0200)
tree3ddf4ed23c3f5ad8030f639e11a74a48cf3628ac
parent673c04e7e3f11d45a51bd7d9e6505e3200c5bcb7
added bind() JS function got rid of all eval() calls

Ignore-this: 4c7b7b3ebc83ce596e8a7e41d6a88f09

Another round of cleaning up the JavaScript code. A new bind() utility
function [1] was introduced and all eval() calls where removed from the
toolbar code.

[1] See http://www.cosmocode.de/en/blog/gohr/2009-10/15-javascript-fixing-the-closure-scope-in-loops

darcs-hash:20091018201710-7ad00-d0bcfa62e28a7a360c8bb8303367a94a9fa78fe1.gz
lib/scripts/edit.js
lib/scripts/events.js
lib/scripts/toolbar.js