bitovi / canjs.com

The CanJS homepage and distributable files
http://v2.canjs.com/
17 stars 12 forks source link

can.view.bindings demos broken #247

Closed moschel closed 9 years ago

moschel commented 9 years ago

Probably related to https://github.com/bitovi/canjs.com/issues/246

None of the demos at http://canjs.com/docs/can.view.bindings.can-value.html are currently working

moschel commented 9 years ago

this is fixed now somehow

moschel commented 9 years ago

i take it back, it works sometimes and not others, haven't figured out why yet

moschel commented 9 years ago

This is super weird. @daffl I need your help.

On the left is firefox, which is showing the demo iframe breaking. On the right is chrome, where it is working.

They both point to the same iframe path, but the FF iframe HTML shows an incorrect path to steal, which is ../../node_modules/steal/steal.js and the Chrome iframe HTML shows the correct path to steal, which is ../../../node_modules/steal/steal.js

screenshot 2015-05-03 00 29 49

Yet if you actually go to that demo page, which is http://canjs.com/can/view/bindings/doc/hyperloop.html, it works and has the right path (the Chrome path).

moschel commented 9 years ago

Also, the checked in file looks correct: https://github.com/bitovi/canjs/blob/master/view/bindings/doc/hyperloop.html#L2

Yet I'm consistently seeing it fail in various browsers and devices

moschel commented 9 years ago

@daffl the only thing that might explain this is if the server serving this file is serving an old and a new version, depending on the page load, and once it serves the new one, the browser caches that, which would make sense based on the history: https://github.com/bitovi/canjs/commit/869167b0301181d35bcdfbde643019adda7efad7#diff-7972fa3164a3ae4b94df8fabe8f350b7

Is this all gh-pages?