Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-2689

Timeline isn't working in Opera 10

    XMLWordPrintable

    Details

      Description

      The timeline isn't working in Opera 10 even though examples Ian showed me worked fine.

      The error console says:

      JavaScript - http://musicbrainz.org/statistics/timeline
      Event thread: DOMContentLoaded
      Error:
      name: TypeError
      message: Statement on line 33: Type mismatch (usually non-object value supplied where object required)
      stacktrace: Line 33 of linked script http://musicbrainz.org/static/b0738ce8fe545e7ece534cfa6f1dc8a7.js: In function measureTickLabels
      "\n").split("\n");for(var j=0;j<lines.length;++j){var line=

      {text:lines[j]}

      ,m=ctx.measureText(line.text);line.width=m.width;line.height=m.height!=null?m.height:f.size;line.height+=Math.round(f.size*0.15);t.width=Math.max(line.width,t.width);t.height+=line.height;t.lines.push(line)}if(opts.labelWidth==null)axisw=Math.max(axisw,t.width);if(opts.labelHeight==null)axish=Math.max(axish,t.height)}ctx.restore()}axis.labelWidth=Math.ceil(axisw);axis.labelHeight=Math.ceil(axish)}
      Line 39 of linked script http://musicbrainz.org/static/b0738ce8fe545e7ece534cfa6f1dc8a7.js
      function(_,axis){setupTickGeneration(axis);setTicks(axis);snapRangeToTicks(axis,axis.ticks);axis.font=$.extend({},fontDefaults,axis.options.font);measureTickLabels(axis)}
      ... Line 15 of linked script http://musicbrainz.org/static/6feb2a1ed54658f808b32653b13fa1bb.js
      function(object,callback,args){var name,i=0,length=object.length,isObj=length===undefined||jQuery.isFunction(object);if(args)if(isObj)for(name in object)

      {if(callback.apply(object[name],args)===false)break}

      else for(;i<length

      {if(callback.apply(object[i++],args)===false)break}

      else if(isObj)for(name in object)

      {if(callback.call(object[name],name,object[name])===false)break}

      else for(var value=
      Line 39 of linked script http://musicbrainz.org/static/b0738ce8fe545e7ece534cfa6f1dc8a7.js: In function setupGrid
      size:Math.round(0.8*(+placeholder.css("font-size").replace("px","")||13)),variant:placeholder.css("font-variant"),weight:placeholder.css("font-weight"),family:placeholder.css("font-family")};var allocatedAxes=$.grep(axes,function(axis)

      {return axis.reserveSpace}

      );$.each(allocatedAxes,function(_,axis){setupTickGeneration(axis);setTicks(axis);snapRangeToTicks(axis,axis.ticks);axis.font=$.extend({},fontDefaults,axis.options.font);measureTickLabels(axis)});for(i=allocatedAxes.length-1;i>=0;--i)allocateAxisBoxFirstPhase(allocatedAxes[i]);
      Line 12 of linked script http://musicbrainz.org/static/b0738ce8fe545e7ece534cfa6f1dc8a7.js: In function Plot
      plot.pointOffset=function(point){return{left:parseInt(xaxes[axisNumber(point,"x")-1].p2c(+point.x)+plotOffset.left),top:parseInt(yaxes[axisNumber(point,"y")-1].p2c(+point.y)+plotOffset.top)}};plot.shutdown=shutdown;plot.resize=function()

      {getCanvasDimensions();resizeCanvas(canvas);resizeCanvas(overlay)}

      ;plot.hooks=hooks;initPlugins(plot);parseOptions(options_);setupCanvases();setData(data_);setupGrid();draw();bindEvents();function executeHooks(hook,args){args=[plot].concat(args);for(var i=0;i<hook.length;++i)hook[i].apply(this,
      Line 92 of linked script http://musicbrainz.org/static/b0738ce8fe545e7ece534cfa6f1dc8a7.js
      function(placeholder,data,options)

      {var plot=new Plot($(placeholder),data,options,$.plot.plugins);return plot}

      Line 148 of inline#3 script in http://musicbrainz.org/statistics/timeline: In function resetPlot
      plot = $.plot($("#graph-container"), graph_data(), options);
      Line 152 of inline#3 script in http://musicbrainz.org/statistics/timeline
      resetPlot();
      ... Line 20 of linked script http://musicbrainz.org/static/6feb2a1ed54658f808b32653b13fa1bb.js
      function(context,args){if(!cancelled&&!fired&&!firing){firing=1;try{while(callbacks[0])callbacks.shift().apply(context,
      Line 10 of linked script http://musicbrainz.org/static/6feb2a1ed54658f808b32653b13fa1bb.js
      wait!==true&&Unable to render embedded object: File (jQuery.isReady){if(!document.body)return setTimeout(jQuery.ready,1);jQuery.isReady=true;if(wait) not found.==true&&--jQuery.readyWait>0)return;readyList.resolveWith(document,[jQuery]);if(jQuery.fn.trigger)jQuery(document).trigger("ready").unbind("ready")}}
      Line 27 of linked script http://musicbrainz.org/static/6feb2a1ed54658f808b32653b13fa1bb.js
      DOMContentLoaded,false);jQuery.ready()}
      ...

        Attachments

          Activity

            People

            • Assignee:
              ianmcorvidae Ian McEwen
              Reporter:
              nikki nikki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Schema Change, 2011-07-11