Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Using a suffix breaks steal in IE

$
0
0
We're using steal's suffix config to add a cachebuster when stealing dependencies. IE works fine when there isn't any suffix/cachebuster, but as soon as we add one IE stops loading modules properly: we get failures just trying to load canjs.

Here's code from a minimal test page I set up. This works fine in FF and Chrome, but it breaks in IE if steal.suffix is any nonempty value.
  1. <script type="text/javascript">
  2.     var steal = { suffix: 'foo' };
  3. </script>
  4. <script type="text/javascript" src="/js/steal/steal.js"></script>
  5. <script type="text/javascript">
  6.     steal('can', function(can) {
  7.         console.log('CanJS was successfully stolen: ', can);
  8.     });
  9. </script>
IE does load the appropriate canjs files, but it behaves as though steal isn't passing "can" into steal's callbacks properly.

Is there a publicly-accessible steal.js which is hosted somewhere where it can steal canjs? I couldn't find one, so I wasn't able to make a fiddle for this.

I haven't yet figured out the root cause of this, or found any workarounds.


Viewing all articles
Browse latest Browse all 3491

Trending Articles