gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

TypeError calling View's getBinding() from strict mode caller #50

Closed rwaldin closed 10 years ago

rwaldin commented 10 years ago

Calling getBinding() or setBinding() on a Backbone.Epoxy.View from a strict mode caller results in a TypeError on Safari. Works fine in Chrome. Here's a demo: http://codepen.io/rwaldin/pen/LEBFI

gmac commented 10 years ago

Really?! Safari doesn't allow callee.caller in strict mode? Well crap. Okay, that was kind of a gratuitous bit of error checking that was being done there anyway, so I'll just nix it in favor of strict mode compliance. See 58ad40b. The recursive caller check has been removed, so now it's your own problem if you call a computed getter from inside itself. ;-)