Clean up some lint problems in specs

This commit is contained in:
Tom Payne
2012-09-27 12:32:15 +02:00
parent c908e88dce
commit b7def4c8c4
4 changed files with 16 additions and 11 deletions
+7 -4
View File
@@ -106,10 +106,13 @@ describe('ol.collection', function() {
it('does dispatch events', function() {
var collection = new ol.Collection(['a', 'b']);
var index, prev;
goog.events.listen(collection, ol.CollectionEventType.SET_AT, function(e) {
index = e.index;
prev = e.prev;
});
goog.events.listen(
collection,
ol.CollectionEventType.SET_AT,
function(e) {
index = e.index;
prev = e.prev;
});
collection.setAt(1, 1);
expect(index).toEqual(1);
expect(prev).toEqual('b');