Let's not over-engineer things (see #164).

This commit is contained in:
ahocevar
2012-01-21 10:46:44 +01:00
parent c38f4ce7bb
commit 9f9feabfae
2 changed files with 5 additions and 16 deletions

View File

@@ -20,10 +20,8 @@
}
function test_ButtonClick(t) {
t.plan(2);
t.plan(1);
events = new OpenLayers.Events({}, element);
buttonClick = new OpenLayers.Events.buttonclick({target: events});
t.ok(buttonClick.target === events, "target set from options argument");
buttonClick = new OpenLayers.Events.buttonclick(events);
t.ok(buttonClick.target === events, "target set from constructor arg");
buttonClick.destroy();