googlearchive / firebase-util

An experimental toolset for Firebase
http://firebase.github.io/firebase-util
MIT License
276 stars 67 forks source link

bind() function in Firebase-util.js is not working in IE, Firebase.util.join() also not working throwing errors #86

Open upatnso opened 8 years ago

upatnso commented 8 years ago

We are using Firebase chat application in Salesforce.

Expected result

Firebase Chat window should open with all the friends in the bottom of Salesforce community page

Actual result

Friends List not showing in Firebase chat and its making the page not responding. When debugged the page with F12 developer tools found some exceptions in the page as mentioned below.

1 . SCRIPT5022: Exception thrown and not caught firebase-util.js, line 405 character 10 function bind(oThis) { if (typeof this !== "function") { // closest thing possible to the ECMAScript 5 internal IsCallable function

  new TypeError("Function.prototype.bind - what is trying to be bound is not callable");

} 2.Exception while Calling Firebase.util.join()

SCRIPT438: Object doesn't support property or method 'join'

firebase util join

Platform (OS): Windows Version of Internet explorer: 9,10,11.

Could you please look into it and let us know whether it is known issue ?

Thanks & Regards, Sobhan.

katowulf commented 8 years ago

Sobhan,

Not sure what IE changed, but I've seen a couple of these reports over the last month. Since the polyfill being used here is a straight copy from MSDN, it's also a bit odd that it would fail at all. It seems most likely that something which is not a function is being passed into util.bind.

Could you start by providing the complete stack trace from the error (this may take some sleuthing on your part since it doesn't look like the debugger is giving you the complete stack at present) and a smallish repro? This would go a long ways to a quick solution.