Skip to content

Commit

Permalink
Added ignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussam Ghazzi committed Feb 28, 2017
1 parent 27456c5 commit 51e45ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
src/js/parsers/captions/vttparser.js
src/js/polyfills/
src/js/utils/backbone.events.js
src/js/utils/underscore.js
src/js/utils/id3Parser.js
src/js/utils/id3Parser.js
13 changes: 11 additions & 2 deletions src/js/utils/underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

// https://github.com/jashkenas/underscore/blob/1f4bf626f23a99f7a676f5076dc1b1475554c8f7/underscore.js

/* eslint no-eq-null: 0 */
/* eslint eqeqeq: 0 */
/* eslint no-void: 0 */
/* eslint guard-for-in: 0 */
/* eslint no-constant-condition: 0 */

define([], function() {

// Establish the object that gets returned to break out of a loop iteration.
Expand Down Expand Up @@ -420,7 +426,7 @@ define([], function() {
throw new TypeError;
}
args = slice.call(arguments, 2);
return bound = function() {
bound = function() {
if (!(this instanceof bound)) {
return func.apply(context, args.concat(slice.call(arguments)));
}
Expand All @@ -433,6 +439,7 @@ define([], function() {
}
return self;
};
return bound;
};

// Partially apply a function by creating a version that has had some of its
Expand Down Expand Up @@ -499,7 +506,9 @@ define([], function() {
// but if you'd like to disable the execution on the leading edge, pass
// `{leading: false}`. To disable execution on the trailing edge, ditto.
_.throttle = function(func, wait, options) {
var context, args, result;
var context;
var args;
var result;
var timeout = null;
var previous = 0;
options || (options = {});
Expand Down

0 comments on commit 51e45ba

Please sign in to comment.