rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
.text('Resume'); | .text(resume); | viewsSlideshowCyclePause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_cycle_pause') .removeClass('views_slideshow_pause') .text('Resume'); } settings.paused = true;} |
if (settings.controls > 0) { | if (settings.controls != 0) { | viewsSlideshowCycleResume = function (settings) { // Make Pause translatable var pause = Drupal.t('Pause'); $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_cycle_play') .removeClass('views_slideshow_play') .text(pause); } settings.paused = false;} |
.text('Pause'); | .text(pause); | viewsSlideshowCycleResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_cycle_playpause_' + settings.vss_id) .addClass('views_slideshow_cycle_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_cycle_play') .removeClass('views_slideshow_play') .text('Pause'); } settings.paused = false;} |
viewsSlideshowGoToSlide = function (slideshowID, slideNum) { | viewsSlideshowGoToSlide = function (slideshowID, callingMethod, slideNum) { | viewsSlideshowGoToSlide = function (slideshowID, slideNum) { var methods = Drupal.settings.viewsSlideshow[slideshowID]['methods']; for (i = 0; i < methods.length; i++) { if (typeof window[methods[i] + '_viewsSlideshowGoToSlide'] == 'function' && methods[i] != callingMethod) { window[methods[i] + '_viewsSlideshowGoToSlide'](slideshowID, slideNum); } }} |
return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>'; | var img = $(slide).find('img'); return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(img).attr('src') + '" alt="' + $(img).attr('alt') + '" title="' + $(img).attr('title') + '"/></a></div>'; | Drupal.theme.prototype.viewsSlideshowPagerThumbnails = function (classes, idx, slide, settings) { var href = '#'; if (settings.pager_click_to_page) { href = $(slide).find('a').attr('href'); } return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>';} |
return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>'; | var img = $(slide).find('img'); return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(img).attr('src') + '" alt="' + $(img).attr('alt') + '" title="' + $(img).attr('title') + '"/></a></div>'; | Drupal.theme.prototype.viewsSlideshowPagerthumbnails = function (classes, idx, slide, settings) { var href = '#'; if (settings.pager_click_to_page) { href = $(slide).find('a').attr('href'); } return '<div class="' + classes + '"><a href="' + href + '"><img src="' + $(slide).find('img').attr('src') + '" /></a></div>';} |
pause:settings.pause==1, | pause:false, | Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId]; settings.targetId = '#' + $(fullId + " :first").attr('id'); settings.opts = { speed:settings.speed, timeout:parseInt(settings.timeout), delay:parseInt(settings.delay), sync:settings.sync==1, random:settings.random==1, pause:settings.pause==1, prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.id:null, next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.id:null, pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.id:null, pagerAnchorBuilder: function(idx, slide) { var classes = 'pager-item pager-num-' + (idx+1); if (idx % 2) { classes += ' odd'; } else { classes += ' even'; } return Drupal.theme('viewsSlideshowPager' + settings.pager_type, classes, idx, slide); }, after:function(curr, next, opts) { // Used for Image Counter. if (settings.image_count) { $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.num').html(opts.currSlide + 1); $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.total').html(opts.slideCount); } }, cleartype:(settings.ie.cleartype), cleartypeNoBg:(settings.ie.cleartypenobg) } if (settings.pager_hover == 1) { settings.opts.pagerEvent = 'mouseover'; settings.opts.pauseOnPagerHover = true; } if (settings.effect == 'none') { settings.opts.speed = 1; } else { settings.opts.fx = settings.effect; } // Add additional settings. var advanced = settings.advanced.split("\n"); for (i=0; i<advanced.length; i++) { var prop = ''; var value = ''; var property = advanced[i].split(":"); for (j=0; j<property.length; j++) { if (j == 0) { prop = property[j]; } else if (j == 1) { value = property[j]; } else { value += ":" + property[j]; } } // Need to evaluate so true and false isn't a string. if (value == 'true' || value == 'false') { value = eval(value); } settings.opts[prop] = value; } $(settings.targetId).cycle(settings.opts); // Show image count for people who have js enabled. $('#views_slideshow_singleframe_image_count_' + settings.id).show(); if (settings.controls > 0) { // Show controls for people who have js enabled browsers. $('#views_slideshow_singleframe_controls_' + settings.id).show(); $('#views_slideshow_singleframe_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault(); }); } });} |
if (settings.pause == 1) { $('#views_slideshow_singleframe_teaser_section_' + settings.id).hover(function() { $(settings.targetId).cycle('pause'); }, function() { if (settings.paused == false) { $(settings.targetId).cycle('resume'); } }); } if (settings.pause_on_click == 1) { $('#views_slideshow_singleframe_teaser_section_' + settings.id).click(function() { viewsSlideshowPause(settings); }); } | Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId]; settings.targetId = '#' + $(fullId + " :first").attr('id'); settings.opts = { speed:settings.speed, timeout:parseInt(settings.timeout), delay:parseInt(settings.delay), sync:settings.sync==1, random:settings.random==1, pause:settings.pause==1, prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.id:null, next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.id:null, pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.id:null, pagerAnchorBuilder: function(idx, slide) { var classes = 'pager-item pager-num-' + (idx+1); if (idx % 2) { classes += ' odd'; } else { classes += ' even'; } return Drupal.theme('viewsSlideshowPager' + settings.pager_type, classes, idx, slide); }, after:function(curr, next, opts) { // Used for Image Counter. if (settings.image_count) { $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.num').html(opts.currSlide + 1); $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.total').html(opts.slideCount); } }, cleartype:(settings.ie.cleartype), cleartypeNoBg:(settings.ie.cleartypenobg) } if (settings.pager_hover == 1) { settings.opts.pagerEvent = 'mouseover'; settings.opts.pauseOnPagerHover = true; } if (settings.effect == 'none') { settings.opts.speed = 1; } else { settings.opts.fx = settings.effect; } // Add additional settings. var advanced = settings.advanced.split("\n"); for (i=0; i<advanced.length; i++) { var prop = ''; var value = ''; var property = advanced[i].split(":"); for (j=0; j<property.length; j++) { if (j == 0) { prop = property[j]; } else if (j == 1) { value = property[j]; } else { value += ":" + property[j]; } } // Need to evaluate so true and false isn't a string. if (value == 'true' || value == 'false') { value = eval(value); } settings.opts[prop] = value; } $(settings.targetId).cycle(settings.opts); // Show image count for people who have js enabled. $('#views_slideshow_singleframe_image_count_' + settings.id).show(); if (settings.controls > 0) { // Show controls for people who have js enabled browsers. $('#views_slideshow_singleframe_controls_' + settings.id).show(); $('#views_slideshow_singleframe_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault(); }); } });} |
|
$(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; | viewsSlideshowSingleFrameResume(settings); | Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId]; settings.targetId = '#' + $(fullId + " :first").attr('id'); settings.opts = { speed:settings.speed, timeout:parseInt(settings.timeout), delay:parseInt(settings.delay), sync:settings.sync==1, random:settings.random==1, pause:settings.pause==1, prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.id:null, next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.id:null, pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.id:null, pagerAnchorBuilder: function(idx, slide) { var classes = 'pager-item pager-num-' + (idx+1); if (idx % 2) { classes += ' odd'; } else { classes += ' even'; } return Drupal.theme('viewsSlideshowPager' + settings.pager_type, classes, idx, slide); }, after:function(curr, next, opts) { // Used for Image Counter. if (settings.image_count) { $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.num').html(opts.currSlide + 1); $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.total').html(opts.slideCount); } }, cleartype:(settings.ie.cleartype), cleartypeNoBg:(settings.ie.cleartypenobg) } if (settings.pager_hover == 1) { settings.opts.pagerEvent = 'mouseover'; settings.opts.pauseOnPagerHover = true; } if (settings.effect == 'none') { settings.opts.speed = 1; } else { settings.opts.fx = settings.effect; } // Add additional settings. var advanced = settings.advanced.split("\n"); for (i=0; i<advanced.length; i++) { var prop = ''; var value = ''; var property = advanced[i].split(":"); for (j=0; j<property.length; j++) { if (j == 0) { prop = property[j]; } else if (j == 1) { value = property[j]; } else { value += ":" + property[j]; } } // Need to evaluate so true and false isn't a string. if (value == 'true' || value == 'false') { value = eval(value); } settings.opts[prop] = value; } $(settings.targetId).cycle(settings.opts); // Show image count for people who have js enabled. $('#views_slideshow_singleframe_image_count_' + settings.id).show(); if (settings.controls > 0) { // Show controls for people who have js enabled browsers. $('#views_slideshow_singleframe_controls_' + settings.id).show(); $('#views_slideshow_singleframe_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault(); }); } });} |
$(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; | viewsSlideshowSingleFramePause(settings); | Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId]; settings.targetId = '#' + $(fullId + " :first").attr('id'); settings.opts = { speed:settings.speed, timeout:parseInt(settings.timeout), delay:parseInt(settings.delay), sync:settings.sync==1, random:settings.random==1, pause:settings.pause==1, prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.id:null, next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.id:null, pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.id:null, pagerAnchorBuilder: function(idx, slide) { var classes = 'pager-item pager-num-' + (idx+1); if (idx % 2) { classes += ' odd'; } else { classes += ' even'; } return Drupal.theme('viewsSlideshowPager' + settings.pager_type, classes, idx, slide); }, after:function(curr, next, opts) { // Used for Image Counter. if (settings.image_count) { $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.num').html(opts.currSlide + 1); $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.total').html(opts.slideCount); } }, cleartype:(settings.ie.cleartype), cleartypeNoBg:(settings.ie.cleartypenobg) } if (settings.pager_hover == 1) { settings.opts.pagerEvent = 'mouseover'; settings.opts.pauseOnPagerHover = true; } if (settings.effect == 'none') { settings.opts.speed = 1; } else { settings.opts.fx = settings.effect; } // Add additional settings. var advanced = settings.advanced.split("\n"); for (i=0; i<advanced.length; i++) { var prop = ''; var value = ''; var property = advanced[i].split(":"); for (j=0; j<property.length; j++) { if (j == 0) { prop = property[j]; } else if (j == 1) { value = property[j]; } else { value += ":" + property[j]; } } // Need to evaluate so true and false isn't a string. if (value == 'true' || value == 'false') { value = eval(value); } settings.opts[prop] = value; } $(settings.targetId).cycle(settings.opts); // Show image count for people who have js enabled. $('#views_slideshow_singleframe_image_count_' + settings.id).show(); if (settings.controls > 0) { // Show controls for people who have js enabled browsers. $('#views_slideshow_singleframe_controls_' + settings.id).show(); $('#views_slideshow_singleframe_playpause_' + settings.id).click(function(e) { if (settings.paused) { $(settings.targetId).cycle('resume'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); settings.paused = false; } else { $(settings.targetId).cycle('pause'); $('#views_slideshow_singleframe_playpause_' + settings.id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); settings.paused = true; } e.preventDefault(); }); } });} |
settings.opts[prop] = value; | var func = value.match(/function\s*\((.*?)\)\s*\{(.*)\}/i); if (func) { value = new Function(func[1].match(/(\w+)/g), func[2]); } if (typeof(value) == "function" && prop in settings.opts) { var callboth = function(before_func, new_func) { return function() { before_func.apply(null, arguments); new_func.apply(null, arguments); }; }; settings.opts[prop] = callboth(settings.opts[prop], value); } else { settings.opts[prop] = value; } | Drupal.behaviors.viewsSlideshowSingleFrame = function (context) { $('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)', context).addClass('viewsSlideshowSingleFrame-processed').each(function() { var fullId = '#' + $(this).attr('id'); var settings = Drupal.settings.viewsSlideshowSingleFrame[fullId]; settings.targetId = '#' + $(fullId + " :first").attr('id'); settings.paused = false; settings.opts = { speed:settings.speed, timeout:parseInt(settings.timeout), delay:parseInt(settings.delay), sync:settings.sync==1, random:settings.random==1, pause:false, prev:(settings.controls > 0)?'#views_slideshow_singleframe_prev_' + settings.id:null, next:(settings.controls > 0)?'#views_slideshow_singleframe_next_' + settings.id:null, pager:(settings.pager > 0)?'#views_slideshow_singleframe_pager_' + settings.id:null, pagerAnchorBuilder: function(idx, slide) { var classes = 'pager-item pager-num-' + (idx+1); if (idx % 2) { classes += ' odd'; } else { classes += ' even'; } return Drupal.theme('viewsSlideshowPager' + settings.pager_type, classes, idx, slide); }, after:function(curr, next, opts) { // Used for Image Counter. if (settings.image_count) { $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.num').html(opts.currSlide + 1); $('#views_slideshow_singleframe_image_count_' + settings.id + ' span.total').html(opts.slideCount); } }, cleartype:(settings.ie.cleartype), cleartypeNoBg:(settings.ie.cleartypenobg) } if (settings.pager_hover == 1) { settings.opts.pagerEvent = 'mouseover'; settings.opts.pauseOnPagerHover = true; } if (settings.effect == 'none') { settings.opts.speed = 1; } else { settings.opts.fx = settings.effect; } // Pause on hover. if (settings.pause == 1) { $('#views_slideshow_singleframe_teaser_section_' + settings.id).hover(function() { $(settings.targetId).cycle('pause'); }, function() { if (settings.paused == false) { $(settings.targetId).cycle('resume'); } }); } // Pause on clicking of the slide. if (settings.pause_on_click == 1) { $('#views_slideshow_singleframe_teaser_section_' + settings.id).click(function() { viewsSlideshowPause(settings); }); } // Add additional settings. var advanced = settings.advanced.split("\n"); for (i=0; i<advanced.length; i++) { var prop = ''; var value = ''; var property = advanced[i].split(":"); for (j=0; j<property.length; j++) { if (j == 0) { prop = property[j]; } else if (j == 1) { value = property[j]; } else { value += ":" + property[j]; } } // Need to evaluate so true and false isn't a string. if (value == 'true' || value == 'false') { value = eval(value); } settings.opts[prop] = value; } $(settings.targetId).cycle(settings.opts); // Show image count for people who have js enabled. $('#views_slideshow_singleframe_image_count_' + settings.id).show(); if (settings.controls > 0) { // Show controls for people who have js enabled browsers. $('#views_slideshow_singleframe_controls_' + settings.id).show(); $('#views_slideshow_singleframe_playpause_' + settings.id).click(function(e) { if (settings.paused) { viewsSlideshowSingleFrameResume(settings); } else { viewsSlideshowSingleFramePause(settings); } e.preventDefault(); }); } });} |
.text('Resume'); | .text(resume); | viewsSlideshowSingleFramePause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_singleframe_playpause_' + settings.vss_id) .addClass('views_slideshow_singleframe_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_singleframe_pause') .removeClass('views_slideshow_pause') .text('Resume'); } settings.paused = true;} |
.text('Pause'); | .text(pause); | viewsSlideshowSingleFrameResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_singleframe_playpause_' + settings.vss_id) .addClass('views_slideshow_singleframe_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_singleframe_play') .removeClass('views_slideshow_play') .text('Pause'); } settings.paused = false;} |
.text('Resume'); | .text(resume); | viewsSlideshowThumbnailHoverPause = function (settings) { $(settings.targetId).cycle('pause'); if (settings.controls > 0) { $('#views_slideshow_thumbnailhover_playpause_' + settings.vss_id) .addClass('views_slideshow_thumbnailhover_play') .addClass('views_slideshow_play') .removeClass('views_slideshow_thumbnailhover_pause') .removeClass('views_slideshow_pause') .text('Resume'); } settings.paused = true;} |
.text('Pause'); | .text(pause); | viewsSlideshowThumbnailHoverResume = function (settings) { $(settings.targetId).cycle('resume'); if (settings.controls > 0) { $('#views_slideshow_thumbnailhover_playpause_' + settings.vss_id) .addClass('views_slideshow_thumbnailhover_pause') .addClass('views_slideshow_pause') .removeClass('views_slideshow_thumbnailhover_play') .removeClass('views_slideshow_play') .text('Pause'); } settings.paused = false;} |
showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId)); | showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId).replace("{{questionSlug}}", questionSlug)); | vote: function(object, voteType){ if (!currentUserId || currentUserId.toUpperCase() == "NONE"){ showMessage(object, voteAnonymousMessage.replace("{{QuestionID}}", questionId)); return false; } if (voteType == VoteType.answerUpVote){ postId = object.attr("id").substring(imgIdPrefixAnswerVoteup.length); } else if (voteType == VoteType.answerDownVote){ postId = object.attr("id").substring(imgIdPrefixAnswerVotedown.length); } submit(object, voteType, callback_vote); }, |
console.log('wantEvent ' + eventName); | wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove', this.moveColumnHeader); this.hooks.set({ 'gridColumnEnter': true, 'gridColumnLeave': true }); break; case 'gridColumnClick': this.colObj.addEvent('click', this.clickColumnHeader); this.hooks.set({ 'gridColumnClick': true }); break; case 'gridRowEnter': case 'gridRowLeave': this.rowObj.addEvent('mousemove', this.moveRowHeader); this.hooks.set({ 'gridRowEnter': true, 'gridRowLeave': true }); break; case 'gridRowClick': this.rowObj.addEvent('click', this.clickRowHeader); this.hooks.set({ 'gridRowClick': true }); break; case 'gridCellEnter': case 'gridCellLeave': this.gridObj.addEvent('mousemove', this.moveCell); this.hooks.set({ 'gridCellEnter': true, 'gridCellLeave': true }); break; case 'gridCellClick': this.gridObj.addEvent('click', this.clickCell); this.hooks.set('gridCellClick', true); break; case 'gridMouseLeave': this.rowObj.addEvent('mouseleave', this.leaveGrid); this.colObj.addEvent('mouseleave', this.leaveGrid); this.gridObj.addEvent('mouseleave', this.leaveGrid); this.hooks.set('gridMouseLeave', true); break; case 'gridScroll': this.contentContainer.addEvent('scroll', this.scroll); default: break; } } else { console.log('event is already hooked'); } }, |
|
console.log('hooking event ' + eventName); | wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove', this.moveColumnHeader); this.hooks.set({ 'gridColumnEnter': true, 'gridColumnLeave': true }); break; case 'gridColumnClick': this.colObj.addEvent('click', this.clickColumnHeader); this.hooks.set({ 'gridColumnClick': true }); break; case 'gridRowEnter': case 'gridRowLeave': this.rowObj.addEvent('mousemove', this.moveRowHeader); this.hooks.set({ 'gridRowEnter': true, 'gridRowLeave': true }); break; case 'gridRowClick': this.rowObj.addEvent('click', this.clickRowHeader); this.hooks.set({ 'gridRowClick': true }); break; case 'gridCellEnter': case 'gridCellLeave': this.gridObj.addEvent('mousemove', this.moveCell); this.hooks.set({ 'gridCellEnter': true, 'gridCellLeave': true }); break; case 'gridCellClick': this.gridObj.addEvent('click', this.clickCell); this.hooks.set('gridCellClick', true); break; case 'gridMouseLeave': this.rowObj.addEvent('mouseleave', this.leaveGrid); this.colObj.addEvent('mouseleave', this.leaveGrid); this.gridObj.addEvent('mouseleave', this.leaveGrid); this.hooks.set('gridMouseLeave', true); break; case 'gridScroll': this.contentContainer.addEvent('scroll', this.scroll); default: break; } } else { console.log('event is already hooked'); } }, |
|
} else { console.log('event is already hooked'); | wantEvent: function(eventName) { console.log('wantEvent ' + eventName); var hook = this.hooks.get(eventName); if (hook === false) { console.log('hooking event ' + eventName); switch(eventName) { case 'gridColumnEnter': case 'gridColumnLeave': this.colObj.addEvent('mousemove', this.moveColumnHeader); this.hooks.set({ 'gridColumnEnter': true, 'gridColumnLeave': true }); break; case 'gridColumnClick': this.colObj.addEvent('click', this.clickColumnHeader); this.hooks.set({ 'gridColumnClick': true }); break; case 'gridRowEnter': case 'gridRowLeave': this.rowObj.addEvent('mousemove', this.moveRowHeader); this.hooks.set({ 'gridRowEnter': true, 'gridRowLeave': true }); break; case 'gridRowClick': this.rowObj.addEvent('click', this.clickRowHeader); this.hooks.set({ 'gridRowClick': true }); break; case 'gridCellEnter': case 'gridCellLeave': this.gridObj.addEvent('mousemove', this.moveCell); this.hooks.set({ 'gridCellEnter': true, 'gridCellLeave': true }); break; case 'gridCellClick': this.gridObj.addEvent('click', this.clickCell); this.hooks.set('gridCellClick', true); break; case 'gridMouseLeave': this.rowObj.addEvent('mouseleave', this.leaveGrid); this.colObj.addEvent('mouseleave', this.leaveGrid); this.gridObj.addEvent('mouseleave', this.leaveGrid); this.hooks.set('gridMouseLeave', true); break; case 'gridScroll': this.contentContainer.addEvent('scroll', this.scroll); default: break; } } else { console.log('event is already hooked'); } }, |
|
} | }, | write: function(elementId){ if(this.installedVer.versionIsValid(this.getAttribute('version'))){ var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId; n.innerHTML = this.getVLCHTML(); //trick for IE activex if (document.all) { var vlc = n.firstChild; vlc.style.width = this.attributes["width"]+"px"; vlc.style.height= this.attributes["height"]+"px"; } return true; }else{ var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId; n.innerHTML = "<div style='width:400px;border:2px solid red;padding:10px'>Your VLC plugin has not been detected !<br><br>please go to <a href='http://www.videolan.org' target='_blank'>http://www.videolan.org</a> to download your plugin.</div>"; } return false; } |
registerCleanupFunction(function() { if (self.started) self.unregister(); }); | aInstallProperties.forEach(function(aInstallProp) { var install = new MockInstall(); for (var prop in aInstallProp) { install[prop] = aInstallProp[prop]; } this.addInstall(install); newInstalls.push(install); }, this); | registerCleanupFunction(function() { if (self.started) self.unregister(); }); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); | $.each(self._children, function(index, child) { box = child.getBounds(); if(box.bottom < dropPos.top || box.top > dropPos.top) return; var dist = Math.sqrt( Math.pow((box.top+box.height/2)-dropPos.top,2) + Math.pow((box.left+box.width/2)-dropPos.left,2) ); if( dist <= best.dist ){ best.item = child; best.dist = dist; best.index = index; } }); | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), | setTimeout(function() { try { Cc["@mozilla.org/microsummary/service;1"].getService(Ci.nsIMicrosummaryService); } catch (ex) { Components.utils.reportError("Failed to init microsummary service:\n" + ex); } }, 4000); | gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), |
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), | setTimeout(function() PlacesUtils.livemarks.start(), 5000); | gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), |
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; | this._forEachPermissions(host, function(aType) { pm.remove(host.asciiHost, aType); | this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; }); |
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), | setTimeout(function() { gDownloadMgr = Cc["@mozilla.org/download-manager;1"]. getService(Ci.nsIDownloadManager); DownloadMonitorPanel.init(); if (Win7Features) { let tempScope = {}; Cu.import("resource: tempScope); tempScope.DownloadTaskbarProgress.onBrowserWindowLoad(window); } }, 10000); | gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), |
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []); | setTimeout(function() PlacesUtils.startPlacesDBUtils(), 15000); | yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []); |
messageManager.addMessageListener("pagehide", function(aMessage) { self.hide(); | [fileName, 'download.pdf'].forEach(function(potentialName, i) { if (file) return; let attemptedFile = downloadsDir.clone(); attemptedFile.append(potentialName); try { attemptedFile.createUnique(attemptedFile.NORMAL_FILE_TYPE, 0666); } catch (e) { if (i != 0) throw e; return; } file = attemptedFile; fileName = file.leafName; | messageManager.addMessageListener("pagehide", function(aMessage) { self.hide(); }); |
if (!this.listeners.some(function(i) i == aListener)) | var installs = this.installs.filter(function(aInstall) { if (aInstall.state == AddonManager.STATE_CANCELLED) return false; if (aTypes && aTypes.length > 0 && aTypes.indexOf(aInstall.type) == -1) return false; return true; }); | if (!this.listeners.some(function(i) i == aListener)) |
["shift", "alt", "ctrl", "meta"].forEach(function (key) { if (aEvent[key + "Key"]) keyCombos.push(key); }); | let doMigrate = itemArray.some(function (name) itemBranch.prefHasUserValue(name)); | ["shift", "alt", "ctrl", "meta"].forEach(function (key) { if (aEvent[key + "Key"]) keyCombos.push(key); }); |
this.listeners = this.listeners.filter(function(i) i != aListener); | timer.initWithCallback(function() { self.callbackTimers.splice(pos, 1); aCallback.apply(null, params); }, this.apiDelay, timer.TYPE_ONE_SHOT); | this.listeners = this.listeners.filter(function(i) i != aListener); |
return this._tabs.map(function(tab) { return tab.browser; }); | window.addEventListener("MozBeforeResize", function(aEvent) { if (aEvent.target != window) return; let { x: x1, y: y1 } = Browser.getScrollboxPosition(Browser.controlsScrollboxScroller); let { x: x2, y: y2 } = Browser.getScrollboxPosition(Browser.pageScrollboxScroller); let [,, leftWidth, rightWidth] = Browser.computeSidebarVisibility(); let shouldHideSidebars = Browser.controlsPosition ? Browser.controlsPosition.hideSidebars : true; Browser.controlsPosition = { x: x1, y: y2, hideSidebars: shouldHideSidebars, leftSidebar: leftWidth, rightSidebar: rightWidth }; }, false); | return this._tabs.map(function(tab) { return tab.browser; }); |
["UP", "RIGHT", "DOWN", "LEFT"].forEach(function (dir) { if (aEvent.direction == aEvent["DIRECTION_" + dir]) return this._doAction(aEvent, ["swipe", dir.toLowerCase()]); }, this); | itemArray.forEach(function (name) { try { if (name != "passwords" && name != "offlineApps") cpdBranch.setBoolPref(name, itemBranch.getBoolPref(name)); clearOnShutdownBranch.setBoolPref(name, itemBranch.getBoolPref(name)); } catch(e) { Cu.reportError("Exception thrown during privacy pref migration: " + e); } }); | ["UP", "RIGHT", "DOWN", "LEFT"].forEach(function (dir) { if (aEvent.direction == aEvent["DIRECTION_" + dir]) return this._doAction(aEvent, ["swipe", dir.toLowerCase()]); }, this); |
this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; | [fileName, 'download.pdf'].forEach(function(potentialName, i) { if (file) return; let attemptedFile = downloadsDir.clone(); attemptedFile.append(potentialName); try { attemptedFile.createUnique(attemptedFile.NORMAL_FILE_TYPE, 0666); } catch (e) { if (i != 0) throw e; return; } file = attemptedFile; fileName = file.leafName; | this._forEachOption(function(aItem, aIndex) { aItem.selected = false; choices[aIndex].selected = false; }); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); | .mouseup(function(e){ var location = new Point(e.clientX, e.clientY); if( location.distance(self._mouseDownLocation) > 1.0 ) return; if( self.isNewTabsGroup() ) return; var activeTab = self.getActiveTab(); if( activeTab ) TabItems.zoomTo(activeTab) else TabItems.zoomTo(self.getChild(0).tab.mirror.el); }); | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
phantom.fadeOut(function(){ $(this).remove(); }); | }, 270, function(){ $(tab.container).css({opacity: 1}); newTab.focus(); Page.showChrome() UI.navBar.urlBar.focus(); anim.remove(); setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400); }); | phantom.fadeOut(function(){ $(this).remove(); }); |
phantom.fadeOut(function(){ iQ(this).remove(); }); | setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400); | phantom.fadeOut(function(){ iQ(this).remove(); }); |
if (curvisits.every(function(cur) cur.date != date)) | this.__defineGetter__("_allUrlStm", function() stm); | if (curvisits.every(function(cur) cur.date != date)) |
function(item, index, array) { return { label: item.name, default: (item == Services.search.defaultEngine), image: item.iconURI ? item.iconURI.spec : null } | return !BrowserSearch.engines.some(function(item) { return aEngine.title == item.name; | function(item, index, array) { return { label: item.name, default: (item == Services.search.defaultEngine), image: item.iconURI ? item.iconURI.spec : null } }); |
messageManager.addMessageListener("DOMContentLoaded", function() { messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true); Elements.panelUI.hidden = false; ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); WeaveGlue.init(); }); | this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this); | messageManager.addMessageListener("DOMContentLoaded", function() { // We only want to delay one time messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true); // We unhide the panelUI so the XBL and settings can initialize Elements.panelUI.hidden = false; // Init the views ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); // Init the sync system WeaveGlue.init(); }); |
setTimeout(function() { button.disabled = false; }, 5000); | this._forEachPermissions(host, function(aType) { permissions.push(aType); }); | setTimeout(function() { button.disabled = false; }, 5000); |
gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), | XPCOMUtils.defineLazyGetter(this, "PopupNotifications", function () { let tmp = {}; Cu.import("resource: return new tmp.PopupNotifications(gBrowser, document.getElementById("notification-popup"), document.getElementById("notification-popup-box")); }); | gestureEvents.forEach(function (event) addRemove("Moz" + event, this, true), |
yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []); | XPCOMUtils.defineLazyGetter(this, "Win7Features", function () { #ifdef XP_WIN #ifndef WINCE const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1"; if (WINTASKBAR_CONTRACTID in Cc && Cc[WINTASKBAR_CONTRACTID].getService(Ci.nsIWinTaskbar).available) { let temp = {}; Cu.import("resource: let AeroPeek = temp.AeroPeek; return { onOpenWindow: function () { AeroPeek.onOpenWindow(window); }, onCloseWindow: function () { AeroPeek.onCloseWindow(window); } }; } #endif #endif return null; }); | yield aArray.reduce(function (aPrev, aCurr, aIndex) { if (num & 1 << aIndex) aPrev.push(aCurr); return aPrev; }, []); |
drop: function(e){ $target = $(e.target); $(this).removeClass("acceptsDrop"); var phantom = $target.data("phantomGroup") var group = drag.info.item.parent; if( group == null ){ phantom.removeClass("phantom"); phantom.removeClass("group-content"); var group = new Group([$target, drag.info.$el], {container:phantom}); } else group.add( drag.info.$el ); }, | drop: function(event){ $(this).removeClass("acceptsDrop"); self.add( drag.info.$el, {left:event.pageX, top:event.pageY} ); }, | drop: function(e){ $target = $(e.target); $(this).removeClass("acceptsDrop"); var phantom = $target.data("phantomGroup") var group = drag.info.item.parent; if( group == null ){ phantom.removeClass("phantom"); phantom.removeClass("group-content"); var group = new Group([$target, drag.info.$el], {container:phantom}); } else group.add( drag.info.$el ); }, |
onProgress: function(request, context, progress, maxProgress) { LOG("gDownloadingPage", "onProgress - progress: " + progress + "/" + maxProgress); let status = this._updateDownloadStatus(progress, maxProgress); var currentProgress = Math.round(100 * (progress / maxProgress)); var p = gUpdates.update.selectedPatch; p.QueryInterface(CoI.nsIWritablePropertyBag); p.setProperty("progress", currentProgress); p.setProperty("status", status); if (this._paused) return; if (this._downloadProgress.mode != "normal") this._downloadProgress.mode = "normal"; if (this._downloadProgress.value != currentProgress) this._downloadProgress.value = currentProgress; if (this._pauseButton.disabled) this._pauseButton.disabled = false; if (progress == maxProgress && this._downloadStatus.textContent == this._label_downloadStatus) return; this._setStatus(status); }, | onProgress: function(request, position, totalSize) { var pm = document.getElementById("checkingProgress"); checkingProgress.setAttribute("mode", "normal"); checkingProgress.setAttribute("value", Math.floor(100 * (position / totalSize))); }, | onProgress: function(request, context, progress, maxProgress) { LOG("gDownloadingPage", "onProgress - progress: " + progress + "/" + maxProgress); let status = this._updateDownloadStatus(progress, maxProgress); var currentProgress = Math.round(100 * (progress / maxProgress)); var p = gUpdates.update.selectedPatch; p.QueryInterface(CoI.nsIWritablePropertyBag); p.setProperty("progress", currentProgress); p.setProperty("status", status); // This !paused test is necessary because onProgress may fire after // the download was paused (for those speedy clickers...) if (this._paused) return; if (this._downloadProgress.mode != "normal") this._downloadProgress.mode = "normal"; if (this._downloadProgress.value != currentProgress) this._downloadProgress.value = currentProgress; if (this._pauseButton.disabled) this._pauseButton.disabled = false; // If the update has completed downloading and the download status contains // the original text return early to avoid an assertion in debug builds. // Since the page will advance immmediately due to the update completing the // download updating the status is not important. // nsTextFrame::GetTrimmedOffsets 'Can only call this on frames that have // been reflowed'. if (progress == maxProgress && this._downloadStatus.textContent == this._label_downloadStatus) return; this._setStatus(status); }, |
out: function(e){ var phantom = $(e.target).data("phantomGroup"); if(phantom) { phantom.fadeOut(function(){ $(this).remove(); }); } } | out: function(){ var group = drag.info.item.parent; if(group) { group.remove(drag.info.$el, {dontClose: true}); } $(this).removeClass("acceptsDrop"); }, | out: function(e){ var phantom = $(e.target).data("phantomGroup"); if(phantom) { phantom.fadeOut(function(){ $(this).remove(); }); } } |
over: function(e){ var $target = $(e.target); function elToRect($el){ return new Rect( $el.position().left, $el.position().top, $el.width(), $el.height() ); } var height = elToRect($target).height * 1.5 + 20; var width = elToRect($target).width * 1.5 + 20; var unionRect = elToRect($target).union( elToRect(drag.info.$el) ); var newLeft = unionRect.left + unionRect.width/2 - width/2; var newTop = unionRect.top + unionRect.height/2 - height/2; $(".phantom").remove(); var phantom = $("<div class='group phantom group-content'/>").css({ width: width, height: height, position:"absolute", top: newTop, left: newLeft, zIndex: -99 }).appendTo("body").hide().fadeIn(); $target.data("phantomGroup", phantom); }, | over: function(){ if( !self.isNewTabsGroup() ) $(this).addClass("acceptsDrop"); }, | over: function(e){ var $target = $(e.target); function elToRect($el){ return new Rect( $el.position().left, $el.position().top, $el.width(), $el.height() ); } var height = elToRect($target).height * 1.5 + 20; var width = elToRect($target).width * 1.5 + 20; var unionRect = elToRect($target).union( elToRect(drag.info.$el) ); var newLeft = unionRect.left + unionRect.width/2 - width/2; var newTop = unionRect.top + unionRect.height/2 - height/2; $(".phantom").remove(); var phantom = $("<div class='group phantom group-content'/>").css({ width: width, height: height, position:"absolute", top: newTop, left: newLeft, zIndex: -99 }).appendTo("body").hide().fadeIn(); $target.data("phantomGroup", phantom); }, |
_showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return; | _showInstallCompleteAlert: function xpidm_showAlert(aSucceeded) { | _showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return; let strings = Elements.browserBundle; let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService); alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, strings.getString("alertAddons"), aMessage, true, "", observer, "addons"); } |
let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService); alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, strings.getString("alertAddons"), aMessage, true, "", observer, "addons"); } | let msg = aSucceeded ? strings.getString("alertAddonsInstalled") : strings.getString("alertAddonsFail"); this._showAlert(msg); }, | _showAlert: function xpidm_showAlert(aMessage) { if (ExtensionsView.visible) return; let strings = Elements.browserBundle; let observer = { observe: function (aSubject, aTopic, aData) { if (aTopic == "alertclickcallback") BrowserUI.showPanel("addons-container"); } }; let alerts = Cc["@mozilla.org/alerts-service;1"].getService(Ci.nsIAlertsService); alerts.showAlertNotification(URI_GENERIC_ICON_XPINSTALL, strings.getString("alertAddons"), aMessage, true, "", observer, "addons"); } |
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 ); | iQ.each(this._children, function(index, child) { if(child == self.topChild) child.setZ(topZIndex + 1); else { child.setZ(zIndex); zIndex--; } }); | timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 ); |
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); | iQ(this.container).fadeOut(function() { iQ(this).remove(); Items.unsquish(); }); | setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); |
this.node.addEventListener("select", function() { self.maybeHideSearch(); gViewController.loadView(self.node.selectedItem.value); }, false); | AddonManager.getAddonsByTypes(null, function(aAddonList) { aAddonList.forEach(function(aAddon) { if (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) { pendingChecks++; aAddon.findUpdates(updateCheckListener, AddonManager.UPDATE_WHEN_USER_REQUESTED); } }); if (pendingChecks == 0) updateStatus(); }); | this.node.addEventListener("select", function() { self.maybeHideSearch(); gViewController.loadView(self.node.selectedItem.value); }, false); |
maybeHidden.forEach(function(aId) { var type = gViewController.parseViewId(aId).param; AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } }); }); }); | aAddonList.forEach(function(aAddon) { if ("applyBackgroundUpdates" in aAddon) aAddon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT; }); | maybeHidden.forEach(function(aId) { var type = gViewController.parseViewId(aId).param; AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } }); }); }); |
AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } | AddonManager.getAddonsByTypes(null, function(aAddonList) { aAddonList.forEach(function(aAddon) { if (aAddon.permissions & AddonManager.PERM_CAN_UPGRADE) { pendingChecks++; aAddon.findUpdates(updateCheckListener, AddonManager.UPDATE_WHEN_USER_REQUESTED); } }); | AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } }); }); |
gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } | if (pendingChecks == 0) updateStatus(); | AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } }); }); |
}); | AddonManager.getAddonsByTypes([type], function(aAddonsList) { if (aAddonsList.length > 0) { self.get(aId).hidden = false; return; } gEventManager.registerInstallListener({ onNewInstall: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallStarted: function(aInstall) { this._maybeShowCategory(aInstall); }, onInstallEnded: function(aInstall, aAddon) { this._maybeShowCategory(aAddon); }, onExternalInstall: function(aAddon, aExistingAddon, aRequiresRestart) { this._maybeShowCategory(aAddon); }, _maybeShowCategory: function(aAddon) { if (type == aAddon.type) { self.get(aId).hidden = false; gEventManager.unregisterInstallListener(this); } } }); }); |
|
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100); }, 10 ); | iQ.each(this._children, function(index, child) { if(child == self.topChild) children.unshift(child); else children.push(child); }); | timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100); }, 10 ); |
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100); | iQ.each(children, function(index, child) { if(!child.locked.bounds) { child.setZ(zIndex); zIndex--; child.addClass("stacked"); child.setBounds(box, !animate); child.setRotation(self._randRotate(35, index)); } }); | setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create([target, dragged]); } else { group.add( dragged ); } }, 100); |
XPCOMUtils.defineLazyGetter(this, "NetUtil", function() { Cu.import("resource: return NetUtil; }); | aAnnos.forEach(function(anno) { if (!anno.value) { annosvc.removePageAnnotation(aURI, anno.name); return; } var flags = ("flags" in anno) ? anno.flags : 0; var expires = ("expires" in anno) ? anno.expires : Ci.nsIAnnotationService.EXPIRE_NEVER; if (anno.type == annosvc.TYPE_BINARY) { annosvc.setPageAnnotationBinary(aURI, anno.name, anno.value, anno.value.length, anno.mimeType, flags, expires); } else annosvc.setPageAnnotation(aURI, anno.name, anno.value, flags, expires); }); | XPCOMUtils.defineLazyGetter(this, "NetUtil", function() { Cu.import("resource://gre/modules/NetUtil.jsm"); return NetUtil;}); |
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 ); | .click(function(){ self.newTab(); }); | timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 ); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); | .mouseover(function() { self.collapse(); }) | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); | .mousedown(function(e){ self._mouseDownLocation = new Point(e.clientX, e.clientY); }) | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); | .mouseup(function(e){ if( e.target.className == "title-shield" || e.target.className == "name" ) return; var location = new Point(e.clientX, e.clientY); if( location.distance(self._mouseDownLocation) > 1.0 ) return; if( self.isNewTabsGroup() ) return; var activeTab = self.getActiveTab(); if( activeTab ) TabItems.zoomTo(activeTab) else if(self.getChild(0)) TabItems.zoomTo(self.getChild(0).tab.mirror.el); }); | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
phantom.fadeOut(function(){ $(this).remove(); }); | setTimeout(function(){ UI.tabBar.showOnlyTheseTabs(Groups.getActiveGroup()._children); }, 400); | phantom.fadeOut(function(){ $(this).remove(); }); |
this.__defineGetter__("_readOnly", function() readOnly); | aAnnos.forEach(function(anno) { if (!anno.value) { annosvc.removeItemAnnotation(aItemId, anno.name); return; } var flags = ("flags" in anno) ? anno.flags : 0; var expires = ("expires" in anno) ? anno.expires : Ci.nsIAnnotationService.EXPIRE_NEVER; if (anno.type == annosvc.TYPE_BINARY) { annosvc.setItemAnnotationBinary(aItemId, anno.name, anno.value, anno.value.length, anno.mimeType, flags, expires); } else { annosvc.setItemAnnotation(aItemId, anno.name, anno.value, flags, expires); } }); | this.__defineGetter__("_readOnly", function() readOnly); |
this._progressCollapseTimer = setTimeout(function (self) { self.statusMeter.parentNode.collapsed = true; self._progressCollapseTimer = 0; }, 100, this); | setTimeout(function() { document.getElementById("Tools:PrivateBrowsing") .removeAttribute("disabled"); }, 0); | this._progressCollapseTimer = setTimeout(function (self) { self.statusMeter.parentNode.collapsed = true; self._progressCollapseTimer = 0; }, 100, this); |
this._tabs.forEach(function(aTab, aIndex, aArray) { if (aTab.owner == tab) aTab.owner = null; }); | Elements.contentNavigator.addEventListener("SizeChanged", function() { ViewableAreaObserver.update(); }, true); | this._tabs.forEach(function(aTab, aIndex, aArray) { if (aTab.owner == tab) aTab.owner = null; }); |
function(evt) { if (!evt.isTrusted) return; if (evt.keyCode == evt.DOM_VK_RETURN) { evt.preventDefault(); if (callbackArgs.length == 0) callbackArgs = [ evt ]; evt.preventDefault(); (self[callbackName]).apply(self, callbackArgs); } }, | let remainingTabs = gBrowser.visibleTabs.filter(function(tab) { return gBrowser._removingTabs.indexOf(tab) == -1; }); | function(evt) { if (!evt.isTrusted) return; if (evt.keyCode == evt.DOM_VK_RETURN) { evt.preventDefault(); if (callbackArgs.length == 0) callbackArgs = [ evt ]; evt.preventDefault(); (self[callbackName]).apply(self, callbackArgs); } }, |
this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this); | messageManager.addMessageListener("pageshow", function() { if (getBrowser().currentURI.spec == "about:blank") return; messageManager.removeMessageListener("pageshow", arguments.callee, true); Elements.panelUI.hidden = false; ExtensionsView.init(); DownloadsView.init(); PreferencesView.init(); ConsoleView.init(); #ifdef MOZ_IPC Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULRuntime) .ensureContentProcess(); #endif #ifdef MOZ_SERVICES_SYNC WeaveGlue.init(); #endif }); | this._bookmarkPopupTimeout = setTimeout(function (self) { self._bookmarkPopupTimeout = -1; self.hide(); }, 2000, this); |
timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); | .mouseup(function(e) { var same = (e.target == self.lastMouseDownTarget); self.lastMouseDownTarget = null; if(!same) return; | timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 ); |
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 ); | if(!$container.data('isDragging')) { self.$titleShield.hide(); self.$title.get(0).focus(); } }); | timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+15, left: target.position().left+15, }, 100); setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); }, 10 ); |
setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); | iQ.each(listOfEls, function(index, el) { self.add(el, null, options); }); | setTimeout( function(){ var group = $(target).data("group"); if( group == null ){ var group = new Group(); group.create( [target, dragged] ); } else { group.add( dragged.get(0) ) } }, 100); |
$(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); | iQ.each(this._children, function(index, child) { var box = child.getBounds(); child.setPosition(box.left + offset.x, box.top + offset.y, immediately); | $(e.target).data("phantomGroup").fadeOut(function(){ $(this).remove(); }); |
drop: function(e){ $target = $(e.target); if( $target.css("zIndex") < $dragged.data("topDropZIndex") ) return; $dragged.data("topDropZIndex", $target.css("zIndex") ); $dragged.data("topDrop", $target); clearTimeout( timeout ); var dragged = $dragged; var target = $target; timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 ); }, | drop: function(event){ $(this).removeClass("acceptsDrop"); self.add( drag.info.$el, {left:event.pageX, top:event.pageY} ); }, | drop: function(e){ $target = $(e.target); // Only drop onto the top z-index if( $target.css("zIndex") < $dragged.data("topDropZIndex") ) return; $dragged.data("topDropZIndex", $target.css("zIndex") ); $dragged.data("topDrop", $target); clearTimeout( timeout ); var dragged = $dragged; var target = $target; timeout = setTimeout( function(){ dragged.removeClass("willGroup") dragged.animate({ top: target.position().top+10, left: target.position().left+10, }, 100) }, 10 ); }, |
function evaluate(s, f, l) { if (typeof s !== "string") return s; | evaluate: function evaluate(options) { if (typeof(options) == 'string') options = {contents: options}; options = {__proto__: options}; if (typeof(options.contents) != 'string') throw new Error('Expected string for options.contents'); if (options.lineNo === undefined) options.lineNo = 1; if (options.jsVersion === undefined) options.jsVersion = "1.8"; if (typeof(options.filename) != 'string') options.filename = '<string>'; | function evaluate(s, f, l) { if (typeof s !== "string") return s; var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch (e if e === THROW) { if (x) { x.result = x2.result; throw THROW; } throw x2.result; } finally { ExecutionContext.current = x; } return x2.result; } |
var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch (e if e === THROW) { if (x) { x.result = x2.result; throw THROW; } throw x2.result; } finally { ExecutionContext.current = x; } return x2.result; } | if (this._principal == systemPrincipal) options.filename = maybeParentifyFilename(options.filename); return Cu.evalInSandbox(options.contents, this._sandbox, options.jsVersion, options.filename, options.lineNo); } | function evaluate(s, f, l) { if (typeof s !== "string") return s; var x = ExecutionContext.current; var x2 = new ExecutionContext(GLOBAL_CODE); ExecutionContext.current = x2; try { execute(parser.parse(new parser.VanillaBuilder, s, f, l), x2); } catch (e if e === THROW) { if (x) { x.result = x2.result; throw THROW; } throw x2.result; } finally { ExecutionContext.current = x; } return x2.result; } |
handleEvent: function(aEvent) { switch (aEvent.type) { case "click": let item = aEvent.target; if (item && item.hasOwnProperty("optionIndex")) { if (this._list.multiple) { item.selected = !item.selected; } else { this.unselectAll(); item.selected = true; } this.onSelect(item.optionIndex, item.selected, !this._list.multiple); } break; case "overflow": if (!this._textbox.value) this.showFilter = true; break; } }, | handleEvent: function handleEvent(aEvent) { this.hide(); } | handleEvent: function(aEvent) { switch (aEvent.type) { case "click": let item = aEvent.target; if (item && item.hasOwnProperty("optionIndex")) { if (this._list.multiple) { // Toggle the item state item.selected = !item.selected; } else { this.unselectAll(); // Select the new one and update the control item.selected = true; } this.onSelect(item.optionIndex, item.selected, !this._list.multiple); } break; case "overflow": if (!this._textbox.value) this.showFilter = true; break; } }, |
hide: function() { this.showFilter = false; this._container.removeEventListener("click", this, false); this._panel.removeEventListener("overflow", this, true); this._panel.hidden = true; if (this._docked) this.undock(); else BrowserUI.popPopup(this); this.reset(); | hide: function hide() { this.panel.collapsed = true; BrowserUI.unlockToolbar(); BrowserUI.popPopup(this); | hide: function() { this.showFilter = false; this._container.removeEventListener("click", this, false); this._panel.removeEventListener("overflow", this, true); this._panel.hidden = true; if (this._docked) this.undock(); else BrowserUI.popPopup(this); this.reset(); }, |
$dragged.removeClass("willGroup"); } | var group = drag.info.item.parent; if(group) { group.remove(drag.info.$el, {dontClose: true}); } $(this).removeClass("acceptsDrop"); }, | out: function(){ $dragged.removeClass("willGroup"); } |
over: function(e){ $dragged.addClass("willGroup"); $dragged.data("topDropZIndex", 0); }, | over: function(){ if( !self.isNewTabsGroup() ) $(this).addClass("acceptsDrop"); }, | over: function(e){ $dragged.addClass("willGroup"); $dragged.data("topDropZIndex", 0); }, |
QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) { | QueryInterface: function QueryInterface(iid) { if (iid.equals(Ci.nsIXULAppInfo) || iid.equals(Ci.nsIXULRuntime) || iid.equals(Ci.nsISupports)) | QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) { return this; } throw Cr.NS_ERROR_NO_INTERFACE; } |
} | QueryInterface: function(iid) { if (iid.equals(Ci.nsIDirectoryServiceProvider) || iid.equals(Ci.nsISupports)) { return this; } throw Cr.NS_ERROR_NO_INTERFACE; } |
|
if (aIID.equals(nsIModule) || (aIID.equals(nsISupports))) | if (aIID.equals(nsIXTFElementFactory) || aIID.equals(nsISupports)) | QueryInterface: function QueryInterface(aIID) { if (aIID.equals(nsIModule) || (aIID.equals(nsISupports))) return this; throw Components.results.NS_ERROR_NO_INTERFACE; return null; } |
function searchFailed() { ExtensionsView.clearSection("repo"); let strings = Elements.browserBundle; let brand = document.getElementById("bundle_brand"); let failLabel = strings.getFormattedString("addonsSearchFail.label", [brand.getString("brandShortName")]); let failButton = strings.getString("addonsSearchFail.button"); ExtensionsView.displaySectionMessage("repo", failLabel, failButton, true); } | searchFailed: function searchFailed() { let loading = document.getElementById("newAddons"); loading.parentNode.removeChild(loading); }, | function searchFailed() { ExtensionsView.clearSection("repo"); let strings = Elements.browserBundle; let brand = document.getElementById("bundle_brand"); let failLabel = strings.getFormattedString("addonsSearchFail.label", [brand.getString("brandShortName")]); let failButton = strings.getString("addonsSearchFail.button"); ExtensionsView.displaySectionMessage("repo", failLabel, failButton, true);} |
show: function(aList) { this.showFilter = false; this._textbox.blur(); this._list = aList; this._container = document.getElementById("select-list"); this._container.setAttribute("multiple", aList.multiple ? "true" : "false"); this._selectedIndexes = this._getSelectedIndexes(); let firstSelected = null; let choices = aList.choices; for (let i = 0; i < choices.length; i++) { let choice = choices[i]; let item = document.createElement("option"); item.className = "chrome-select-option"; item.setAttribute("label", choice.text); choice.disabled ? item.setAttribute("disabled", choice.disabled) : item.removeAttribute("disabled"); this._container.appendChild(item); if (choice.group) { item.classList.add("optgroup"); continue; } item.optionIndex = choice.optionIndex; item.choiceIndex = i; if (choice.inGroup) item.classList.add("in-optgroup"); if (choice.selected) { item.setAttribute("selected", "true"); firstSelected = firstSelected || item; } } this._panel.hidden = false; this._panel.height = this._panel.getBoundingClientRect().height; if (!this._docked) BrowserUI.pushPopup(this, this._panel); this._scrollElementIntoView(firstSelected); this._container.addEventListener("click", this, false); this._panel.addEventListener("overflow", this, true); | show: function show() { if (BrowserUI.activePanel || BrowserUI.isPanelVisible()) return; this.panel.setAttribute("count", this.panel.childNodes.length); this.panel.collapsed = false; BrowserUI.lockToolbar(); BrowserUI.pushPopup(this, [this.panel, Elements.toolbarContainer]); | show: function(aList) { this.showFilter = false; this._textbox.blur(); this._list = aList; this._container = document.getElementById("select-list"); this._container.setAttribute("multiple", aList.multiple ? "true" : "false"); this._selectedIndexes = this._getSelectedIndexes(); let firstSelected = null; let choices = aList.choices; for (let i = 0; i < choices.length; i++) { let choice = choices[i]; let item = document.createElement("option"); item.className = "chrome-select-option"; item.setAttribute("label", choice.text); choice.disabled ? item.setAttribute("disabled", choice.disabled) : item.removeAttribute("disabled"); this._container.appendChild(item); if (choice.group) { item.classList.add("optgroup"); continue; } item.optionIndex = choice.optionIndex; item.choiceIndex = i; if (choice.inGroup) item.classList.add("in-optgroup"); if (choice.selected) { item.setAttribute("selected", "true"); firstSelected = firstSelected || item; } } this._panel.hidden = false; this._panel.height = this._panel.getBoundingClientRect().height; if (!this._docked) BrowserUI.pushPopup(this, this._panel); this._scrollElementIntoView(firstSelected); this._container.addEventListener("click", this, false); this._panel.addEventListener("overflow", this, true); }, |
stop: function(){ $dragged.data('isDragging', false); $(this).css({zIndex: zIndex}); $dragged = null; zIndex += 1; }, | stop: function() { this.$el.data('isDragging', false); if(this.parent && !this.parent.locked.close && this.parent != this.item.parent && this.parent._children.length == 0 && !this.parent.getTitle()) { this.parent.close(); } if(this.parent && this.parent.expanded) this.parent.arrange(); if(this.item && !this.item.parent) { this.item.setZ(drag.zIndex); drag.zIndex++; this.item.reloadBounds(); this.item.pushAway(); } } | stop: function(){ $dragged.data('isDragging', false); $(this).css({zIndex: zIndex}); $dragged = null; zIndex += 1; }, |
if (callResult.returnValue === true) { | if (callResult.returnValue === true && typeof callQueue[callId] !== 'undefined') { | "onSuccess" : function (callResult) { if (callResult.returnValue === true) { callQueue[callId].status = "available"; } }, |
function $$() { return Selector.findChildElements(document, $A(arguments)); } | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | function $$() { return Selector.findChildElements(document, $A(arguments));} |
ret = !layer ? SC.$([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ; | ret = !layer ? SC.$.buffer([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ; | $: function(sel) { var ret, layer = this.layer(); // note: SC.$([]) returns an empty CoreQuery object. SC.$() would // return an object selecting the document. ret = !layer ? SC.$([]) : (sel === undefined) ? SC.$.buffer(layer) : SC.$.buffer(sel, layer) ; layer = null ; // avoid memory leak return ret ; }, |
function $(element) { if (arguments.length > 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element = document.getElementById(element); return Element.extend(element); } | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | function $(element) { if (arguments.length > 1) { for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element = document.getElementById(element); return Element.extend(element);} |
$A = function(iterable) { if (!iterable) return []; if (!(typeof iterable === 'function' && typeof iterable.length === 'number' && typeof iterable.item === 'function') && iterable.toArray) return iterable.toArray(); var length = iterable.length || 0, results = new Array(length); while (length--) results[length] = iterable[length]; return results; }; | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | $A = function(iterable) { if (!iterable) return []; // In Safari, only use the `toArray` method if it's not a NodeList. // A NodeList is a function, has an function `item` property, and a numeric // `length` property. Adapted from Google Doctype. if (!(typeof iterable === 'function' && typeof iterable.length === 'number' && typeof iterable.item === 'function') && iterable.toArray) return iterable.toArray(); var length = iterable.length || 0, results = new Array(length); while (length--) results[length] = iterable[length]; return results; }; |
function $H(object) { return new Hash(object); }; | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | function $H(object) { return new Hash(object);}; |
var $R = function(start, end, exclusive) { return new ObjectRange(start, end, exclusive); }; | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | var $R = function(start, end, exclusive) { return new ObjectRange(start, end, exclusive);}; |
function $w(string) { if (!Object.isString(string)) return []; string = string.strip(); return string ? string.split(/\s+/) : []; } | var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\ | function $w(string) { if (!Object.isString(string)) return []; string = string.strip(); return string ? string.split(/\s+/) : [];} |
obj = { 'taskmonid':Data.tid, 'from':Data.ts2iso(Data.from,2), 'to':Data.ts2iso(Data.till,3), 'timerange':Data.timeRange }; return obj; }, | return {}; }, | 'dataURL_params': function(Data) { obj = { 'taskmonid':Data.tid, 'from':Data.ts2iso(Data.from,2), 'to':Data.ts2iso(Data.till,3), 'timerange':Data.timeRange }; return obj; }, |
'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); } | 'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); }, | 'fnERClose':function(dataID){ alert('Please define a proper function to handle "fnERClose"!'); } |
Data.tid = Data.mem.tasks.data[aPos[0]].id; | Data.tid = Data.mem.mains.data[aPos[0]].id; | 'setupUserParams': function(Data, el, aPos) { var classTranslate = { 'tmIdClick':'all', 'noJobsClick':'all', 'noPendClick':'P', 'noRunnClick':'R', 'noSuccClick':'S', 'noFailClick':'F', 'noUnknClick':'U' }; Data.uparam = [classTranslate[$(el).find('a').attr('class')]]; Data.tid = Data.mem.tasks.data[aPos[0]].id; }, |
'translateData':function(dataJSON) { return dataJSON; }, | 'translateData': function(dataJSON) { var usersList = Array(); var dataArr = dataJSON.basicData[0]; for (i in dataArr) { usersList.push(dataArr[i].GridName); } return usersList; } | 'translateData':function(dataJSON) { return dataJSON; }, |
for (i in dataJSON) { usersList.push(dataJSON[i].GridName); | var dataArr = dataJSON.basicData[0]; for (i in dataArr) { usersList.push(dataArr[i].GridName); | 'translateData': function(dataJSON) { var usersList = Array(); for (i in dataJSON) { usersList.push(dataJSON[i].GridName);//.replace(/"/g, '')); } return usersList; }, |
}, | } | 'translateData': function(dataJSON) { var usersList = Array(); for (i in dataJSON) { usersList.push(dataJSON[i].GridName);//.replace(/"/g, '')); } return usersList; }, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.