mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
Move lib/d3.keybinding.js -> util/keybinding.js
almost none of the original d3 "plugin" code remains
This commit is contained in:
+1
-1
@@ -81,7 +81,6 @@
|
||||
<script src='spec/geo/vector.js'></script>
|
||||
|
||||
<script src='spec/lib/d3.combobox.js'></script>
|
||||
<script src='spec/lib/d3.keybinding.js'></script>
|
||||
<script src='spec/lib/locale.js'></script>
|
||||
|
||||
<script src='spec/modes/add_point.js'></script>
|
||||
@@ -138,6 +137,7 @@
|
||||
<script src='spec/ui/fields/wikipedia.js'></script>
|
||||
|
||||
<script src='spec/util/clean_tags.js'></script>
|
||||
<script src='spec/util/keybinding.js'></script>
|
||||
<script src='spec/util/session_mutex.js'></script>
|
||||
<script src='spec/util/suggest_names.js'></script>
|
||||
<script src='spec/util/util.js'></script>
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('d3.combobox', function() {
|
||||
];
|
||||
|
||||
function simulateKeypress(key) {
|
||||
var keyCode = iD.lib.d3keybinding.keyCodes[key];
|
||||
var keyCode = iD.utilKeybinding.keyCodes[key];
|
||||
var value = input.property('value');
|
||||
var start = input.property('selectionStart');
|
||||
var finis = input.property('selectionEnd');
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
describe('d3.keybinding', function() {
|
||||
describe('utilKeybinding', function() {
|
||||
var keybinding, spy, input;
|
||||
|
||||
beforeEach(function () {
|
||||
keybinding = iD.lib.d3keybinding('keybinding-test');
|
||||
keybinding = iD.utilKeybinding('keybinding-test');
|
||||
spy = sinon.spy();
|
||||
input = d3.select('body')
|
||||
.append('input');
|
||||
Reference in New Issue
Block a user