can-fixture icon indicating copy to clipboard operation
can-fixture copied to clipboard

fixture is added to the window

Open justinbmeyer opened this issue 7 years ago • 2 comments

https://codepen.io/justinbmeyer/pen/gBBObr?editors=1010

if you remove fixture from being imported, the example still works.

justinbmeyer avatar Oct 23 '18 16:10 justinbmeyer

https://github.com/canjs/can-fixture/blob/c67816b167730f7002a9db03a92cde483cdbf130/fixture.js#L70 is where this happens. I don't recall the historical reason for adding it. So I'm not sure if it's a breaking change to remove it or not.

matthewp avatar Oct 24 '18 20:10 matthewp

It's almost certainly added to make fixture easy to use without the rest of CanJS. We should probably add a function that warns and calls fixture and then remove in the next Major release.

justinbmeyer avatar Oct 25 '18 20:10 justinbmeyer