Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.cjTextFx.remove = function(removeAll, objs) {
- cleanDictionary(removeAll, objs);
- }
- function cleanDictionary(removeAll, objs) {
- if(dictionary.length) {
- if(!removeAll) {
- var i = objs.length, j;
- while(i--) {
- j = dictionary.length;
- while(j--) {
- if(objs[i] === dictionary[j].object) {
- clean(dictionary[j]);
- dictionary.splice(j, 1);
- break;
- }
- }
- }
- }
- else {
- while(dictionary.length) {
- clean(dictionary[0]);
- dictionary.shift();
- }
- }
- }
- }
- function clean(model) {
- clearTimeout(model.start);
- clearInterval(model.timer);
- var arr = model.array, obj;
- while(arr.length) {
- $(arr[0]).stop(true);
- arr.shift();
- }
- obj = $(model.object);
- obj.unbind("click", model.linkHandler);
- if(model.restore) {
- obj.empty();
- obj.html(model.html);
- }
- obj.css("visibility", "hidden");
- }
- }
Add Comment
Please, Sign In to add comment