Hy, problem mantaining big javascript code.
Posted
by Totty
on Stack Overflow
See other posts from Stack Overflow
or by Totty
Published on 2010-04-23T18:42:11Z
Indexed on
2010/04/23
18:53 UTC
Read the original article
Hit count: 363
AJAX
|JavaScript
I have more than 1000 lines in a big jquery plugin, that is actually a big class, that inludes some others classes, but they have to be in the same file.
I inlcude a piece of code. If you have another way to simplify the code.. The actual problem is that i have a gallery with a lot of things, is dynamic with smart ajax data loading so it requires a lot of classes to use it properly and to cache the data.
(function($){
var TottysGallery = function(element, options, data){
var Core = new function(){...};
var Core2 = new function(){...};
var Core3 = new function(){...};
var Core = function(){...};
};
© Stack Overflow or respective owner