Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jun 26, 2016
1 parent aaee433 commit 2ba59d2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/adapter.js
lib/adapter.js
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo: false
language: node_js
node_js:
- "0.10"
Expand All @@ -8,7 +9,6 @@ node_js:

# Make sure we have new NPM.
before_install:
- '[ "${TRAVIS_NODE_VERSION}" != "0.8" ] || npm install -g npm@1.4.28'
- npm install -g npm

before_script:
Expand Down
10 changes: 8 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ var path = require('path')
module.exports = function (config) {
config.set({
frameworks: ['jasmine'],

files: [
path.dirname(require.resolve('jasmine-core')) + '/jasmine-core/jasmine.js',
'src/*.js',
'test/*.js'
],

browsers: process.env.TRAVIS ? ['Firefox'] : ['Chrome'],

autoWatch: true
autoWatch: true,

plugins: [
'karma-firefox-launcher',
'karma-chrome-launcher',
require.resolve('./')
]
})
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@
"eslint-config-standard": "^5.1.0",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-standard": "^1.3.2",
"grunt": "~0.4.5",
"grunt-bump": "^0.7.0",
"grunt": "~1.0.1",
"grunt-bump": "^0.8.0",
"grunt-conventional-changelog": "^6.1.0",
"grunt-conventional-github-releaser": "^1.0.0",
"grunt-eslint": "^18.0.0",
"grunt-karma": "1.x || ~0.12.1",
"grunt-karma": "2.x",
"grunt-npm": "0.0.2",
"jasmine-core": "~2.4.1",
"karma": "1.x || ",
"karma-chrome-launcher": "1.x || ~0.2.2",
"karma-firefox-launcher": "1.x || ~0.1.7",
"karma-jasmine": "1.x || ~0.3.7",
"load-grunt-tasks": "^3.4.1"
},
"peerDependencies": {
Expand Down
7 changes: 3 additions & 4 deletions src/adapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* jshint globalstrict: true */
'use strict'

/**
Expand Down Expand Up @@ -324,7 +323,7 @@ function indexOf(collection, find, i /*opt*/) {
if (collection.indexOf) {
return collection.indexOf(find, i);
}

if (i === undefined) {i = 0;}
if (i < 0) {i += collection.length;}
if (i < 0) {i = 0;}
Expand All @@ -338,7 +337,7 @@ function filter(collection, filter, that /*opt*/) {
if (collection.filter) {
return collection.filter(filter, that);
}

var other = [], v
for (var i = 0, n = collection.length; i < n; i++) {
if (i in collection && filter.call(that, v = collection[i], i, collection)) {
Expand All @@ -350,7 +349,7 @@ function map(collection, mapper, that /*opt*/) {
if (collection.map) {
return collection.map(mapper, that);
}

var other = new Array(collection.length)
for (var i = 0, n = collection.length; i < n; i++) {
if (i in collection) {
Expand Down

0 comments on commit 2ba59d2

Please sign in to comment.