ion.sound icon indicating copy to clipboard operation
ion.sound copied to clipboard

console.log(1) blows up Internet Explorer Javascript

Open SpectrumJobs opened this issue 7 years ago • 1 comments

In the scenario where ion.sound is used from the "onclick" handler of a

That code is within ion.sound.js, within the "play" function, at line 766 (see code snippet below.)

        play: function (options) {
            if (!this.inited) {
                return;
            }

            delete this.options.part;

            if (options) {
                extend(options, this.options);
            }

            console.log(1);
            if (!this.loaded) {

Adding a function similar to:

    var log = function (text) { 
      if(window.console) {  
        if(console.log && typeof console.log === "function") { 
          console.log(text); 
        }
      }
    }

... and replacing the "console.log(1)" with "log(1)" gets around the problem.

SpectrumJobs avatar Feb 28 '18 05:02 SpectrumJobs

Oh shit, this console.log should be removed!

IonDen avatar Feb 28 '18 09:02 IonDen