Showing 46 of 73 total issues
File wiselinks-1.2.2.js
has 1978 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Wiselinks-1.2.2
* @copyright 2012-2014 Igor Alexandrov, Alexey Solilin, Julia Egorova, Alexandr Borisov
* @preserve https://github.com/igor-alexandrov/wiselinks
*/
Function initCore
has 855 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.initCore = function(options){
// Initialise
if ( typeof History.initCore.initialized !== 'undefined' ) {
// Already Loaded
return false;
Function initCore
has 855 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.initCore = function(options){
// Initialise
if ( typeof History.initCore.initialized !== 'undefined' ) {
// Already Loaded
return false;
File native.history.js
has 1413 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
json2.js
2012-10-08
Public Domain.
Function initHtml4
has 261 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.initHtml4 = function(){
// Initialise
if ( typeof History.initHtml4.initialized !== 'undefined' ) {
// Already Loaded
return false;
Function initHtml4
has 261 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.initHtml4 = function(){
// Initialise
if ( typeof History.initHtml4.initialized !== 'undefined' ) {
// Already Loaded
return false;
Function str
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
Function str
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
Function hashChangeInit
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.hashChangeInit = function(){
// Define our Checker Function
History.checkerFunction = null;
// Define some variables that will help in our checker function
Function hashChangeInit
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.hashChangeInit = function(){
// Define our Checker Function
History.checkerFunction = null;
// Define some variables that will help in our checker function
Function onUnload
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.onUnload = function(){
// Prepare
var currentStore, item, currentStoreString;
// Fetch
Function onUnload
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.onUnload = function(){
// Prepare
var currentStore, item, currentStoreString;
// Fetch
Function onPopState
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.onPopState = function(event,extra){
// Prepare
var stateId = false, newState = false, currentHash, currentState;
// Reset the double check
Function log
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.log = function(){
// Prepare
var
consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'),
textarea = document.getElementById('log'),
Function onPopState
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.onPopState = function(event,extra){
// Prepare
var stateId = false, newState = false, currentHash, currentState;
// Reset the double check
Function log
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.log = function(){
// Prepare
var
consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'),
textarea = document.getElementById('log'),
Function Page
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Page($target, options) {
var self;
this.$target = $target;
this.options = options;
self = this;
Function pushState
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.pushState = function(data,title,url,queue){
//History.debug('History.pushState: called', arguments);
// We assume that the URL passed in is URI-encoded, but this makes
// sure that it's fully URI encoded; any '%'s that are encoded are
Function pushState
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
History.pushState = function(data,title,url,queue){
//History.debug('History.pushState: called', arguments);
// We assume that the URL passed in is URI-encoded, but this makes
// sure that it's fully URI encoded; any '%'s that are encoded are
Function parse
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JSON.parse = function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.