risq / jquery-advanced-news-ticker

(deprecated) - A powerful, flexible and animated vertical news ticker plugin for JQuery.
http://risq.github.io/jquery-advanced-news-ticker
GNU General Public License v2.0
297 stars 104 forks source link

Object doesn't support this property or method #8

Open MaikelB opened 10 years ago

MaikelB commented 10 years ago

As the title says.

This problem occurs in IE8. Anyway to solve this problem?

risq commented 10 years ago

Thanks for reporting this error. Can you give me more details about this issue or maybe provide a jsFiddle ?

dageddy commented 10 years ago

Yes it does not work in IE8. The error location depends on the Ticker options set.

Brebinator commented 8 years ago

IE8 has an issue with 'bind'.. http://stackoverflow.com/questions/11054511/how-to-handle-lack-of-javascript-object-bind-method-in-ie-8

if (!Function.prototype.bind) {
  Function.prototype.bind = function(oThis) {
    if (typeof this !== 'function') {
      // closest thing possible to the ECMAScript 5
      // internal IsCallable function
      throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
   }

var aArgs   = Array.prototype.slice.call(arguments, 1),
    fToBind = this,
    fNOP    = function() {},
    fBound  = function() {
      return fToBind.apply(this instanceof fNOP && oThis
             ? this
             : oThis,
             aArgs.concat(Array.prototype.slice.call(arguments)));
    };

    fNOP.prototype = this.prototype;
    fBound.prototype = new fNOP();

    return fBound;
  };
}