kimroen / ember-cli-document-title

Adding document title behaviour to your ember app
MIT License
216 stars 61 forks source link

Rename Promise to a different name #84

Open patocallaghan opened 5 years ago

patocallaghan commented 5 years ago

This was a weird one 😄

I bumped to 0.4.0 from 0.3.3 and noticed some of my tests were failing even though they had nothing to do with ember-cli-document-title. Turns out that var Promise was clobbering window.Promise which caused issues. Because the addon code is in a vendor file it just gets inlined as is into the vendor.js which means any variables defined here are global. Here I've renamed Promise to RSVPromise to prevent any clobbering.

scottwernervt commented 5 years ago

I recommend submitting your pull request at https://github.com/mike-north/ember-cli-document-title until the owner of this repo responds.

patocallaghan commented 5 years ago

Oh thanks, I didn't know that existed. I'm using my own fork atm too