<script type="text/javascript" charset="utf-8"> // this must be set before any other script is loaded for IE7 security document.domain = 'twitter.com'; </script>
WATCH.inactives.end = noop; WATCH.actives.end = function (label) { if (typeof label === 'undefined') { throw new Error('WATCH.end() requires a label'); } if (WATCH._didExecute[label]) { WATCH._didExecute[label] = false; } else if (WATCH._active) { WATCH._triggerError(new Error('WATCH.end("'+label+'") called without successful call to WATCH("'+label+'", fn(){...}) - a SyntaxError probably just happened')); } WATCH._didExecute[label] = false; };
/** * Given a function, return a version of that function that is wrapped by the WATCH function. */ WATCH.inactives.callback = function(that, callback){ // pass the callback through return typeof callback === 'undefined' ? that : callback; }; WATCH.actives.callback = function (that, callback) { if (arguments.length === 1) { callback = that; that = this; }
if (typeof callback === 'string') { callback = (function (stringVersion) { return function () { WATCH._originalEval.call(this, stringVersion); }; }(callback)); }
var watchedCallback = function () { var that = this, args = arguments, result;
// Wrap eval in order to catch SyntaxErrors when loading code through LAB.js WATCH.activate(); WATCH._watchedEval = WATCH.callback(window['eval']); WATCH.activate(false); }()); </script> <script type="text/javascript"> WATCH.add"onError"function(errorReport) { if (document.body.className.indexOf("loading-body") !== -1) { errorReport.dead = true; } }); </script>
<script> function bust () { document.write = ""; window.top.location = window.self.location; setTimeout(function() { document.body.innerHTML = ''; }, 0); window.self."onload"= function(evt) { document.body.innerHTML = ''; }; } if (window.top !== window.self) { // are you trying to put self in an iframe? try { if (window.top.location.host) { // this is illegal to access unless you share a non-spoofable document domain // fun times } else { bust(); // chrome executes this } } catch (ex) { bust(); // everyone executes this } } </script>