Showing 8 of 11 total issues
Function exports
has 311 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.initConfig({
meta: {
pkg: grunt.file.readJSON('package.json'),
File Gruntfile.js
has 313 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.initConfig({
meta: {
pkg: grunt.file.readJSON('package.json'),
File ObjectEventTarget.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Add a ObjectEventTarget with a prototype that can be used
// by any object in the JavaScript context, to add, remove and trigger
// events.
// Example:
// ```
Function dispatch
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dispatch(obj, event){
// Dispatch a queue of events of the tye passed inside the event object
// Check if the event is a valid object
if (!event || typeof event.type !== 'string'){
Function initEvent
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ObjectEvent.prototype.initEvent = function() {
// Init event if it has some propertie wrong, fix it
// Time that the event has created
this.timeStamp = this.timeStamp || Date.now();
Avoid too many return
statements within this function. Open
Open
return true;
Avoid too many return
statements within this function. Open
Open
return returnValue;
Avoid too many return
statements within this function. Open
Open
return returnValue;