Showing 509 of 1,320 total issues
Function spiesView
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
spiesView : function(e) {
if(e.newValue) {
if(!this.spies) {
require('js/actions/menu/loader').show();
this.service.view_foreign_spies({session_id:Game.GetSession(),building_id:this.building.id}, {
Function _getLawsTab
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getLawsTab : function() {
var tab = new YAHOO.widget.Tab({ label: "Laws", content: [
'<div>',
' <div style="overflow:auto;"><ul id="lawsDetails"></ul></div>',
'</div>'
Function EvictMining
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EvictMining: function(e) {
var button = Event.getTarget(e),
platform = Lib.getSelectedOptionValue('proposeEvictMiningId');
button.disabled = true;
Function _getPropsTab
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getPropsTab : function() {
var tab = new YAHOO.widget.Tab({ label: "Propositions", content: [
'<div>',
' <div style="overflow:auto;"><ul id="propsDetails"></ul></div>',
'</div>'
Function _getBuildTab
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getBuildTab : function() {
var buildTab = new YAHOO.widget.Tab({ label: "Build Ships", content: [
'<div>',
' <div class="clearafter" style="font-weight:bold;">',
' <span id="shipDocksAvailable" style="float:left;"></span>',
Function _setTab
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setTab : function(el) {
var list = this.list;
Event.purgeElement(list, true);
list.innerHTML = "";
Dom.removeClass([this.create,this.inbox,this.alerts,this.intel,this.medals,this.tutorial,this.sent,this.archive,this.trash,this.announce], "selected");
Function titleCaps
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
String.prototype.titleCaps = function(replaceVal, withVal){
var parts = [], split = /[:.;?!] |(?: |^)["�]/g, index = 0, processVal = this;
var fnUpper = function(all){
return (/[A-Za-z]\.[A-Za-z]/).test(all) ? all : String.upper(all);
},
Function Tile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Tile = function(x, y, z, ox, oy, layer) {
this.z = z;
this.x = x;
this.y = y;
this.offsetX = ox;
Function refresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
refresh : function() {
var obj = this.map.getTile(this.x,this.y,this.z);
this.blank = obj.blank;
this.image = obj.image;
this.url = obj.url;
Function fetch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetch: function(url, callback) {
if(YAHOO.rpc.Service._smdCache[url]) {
this._smd = YAHOO.rpc.Service._smdCache[url];
this.process(callback);
}
Function success
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success : function(o){
this.rpcSuccess(o);
if(hasResources) {
this.getStoredResources(true);
}
Function SpyNameSave
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SpyNameSave : function(e) {
Event.stopEvent(e);
require('js/actions/menu/loader').show();
var newName = this.Input.value;
Function PropsPopulate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PropsPopulate : function() {
var details = Dom.get("propsDetails");
if(details) {
var props = this.props,
Function success
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success : function(o){
this.rpcSuccess(o);
if(hasResources) {
this.getStoredResources(true);
}
Function MapVisible
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MapVisible : function(visible) {
if(visible) {
// Build panels
this._buildFindPanel();
this._buildDetailsPanel();
Function PropsPopulate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PropsPopulate : function() {
var details = Dom.get("propsDetails");
if(details) {
var props = this.props,
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
return (
<div className="ui teal labels">
<div className="ui label">
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render : function() {
var body = this.props.body;
var hour = body[this.props.type + '_hour'];
var stored = body[this.props.type + '_stored'] || body[this.props.type] || 0;
Function isEventSupported
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var isEventSupported = (function() {
var TAGNAMES = {
'select' : 'input',
'change' : 'input',
'submit' : 'form',
Function QueueProcess
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
QueueProcess : function(e, oArgs) {
// only do anything if the queue actually has data
if (Game.queue) {
var toFire = {};
var tickMS = oArgs[0];