Skip to content

Instantly share code, notes, and snippets.

// Excerpt from http://www.mtv.com/sitewide/scripts/reporting/mtvi_reporting.js
/*Build Date: Fri May 15, 2009 14:20:51*/
try {
var com = typeof com === 'object' ? com : {};
com.mtvi = typeof com.mtvi === 'object' ? com.mtvi : {};
com.mtvi.util = typeof com.mtvi.util === 'object' ? com.mtvi.util : {};
com.mtvi.logger = typeof com.mtvi.logger === 'object' ? com.mtvi.logger : {};
com.mtvi.config = typeof com.mtvi.config === 'object' ? com.mtvi.config : {};
com.mtvi.ads = typeof com.mtvi.ads === 'object' ? com.mtvi.ads : {};
dojo.require("dojo.string");
(function(d){
var _eraseFrom = function(ar, handle, cb){
dojo.forEach(ar, function(item, index){
if(handle == item){
cb(item);
ar.splice(index, 0);
}
});
(function(d){
d.compose = function(/* Function... */){
// summary: Returns the composition of a list of functions.
//
// description:
// Returns the composition of a list of functions, where each
// function consumes the return value of the function that follows.
//
// additionally, if one of the functions returns an array, the values
// d.global == window, d.doc == document
// dojo.selection function defition (one-time cost to determine):
var _selection = "getSelection",
selection = d.global[_selection] || d.doc[_selection] || function(){
return d.doc.selection.createRange().text || "";
}
;
dojo.ready(function() {
/*
Emulate IE-6 rendering
original: http://mankzblog.wordpress.com/2009/11/13/ie6-frame-to-battle-chrome-frame/
@param node, the poor node to get "the treatment"
*/
// dear LORD, please DRY
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#content-area { width:500px; padding:10px; }
</style>
<script src="trunk/dojo/dojo.js">
// requires dojo 1.4
adcsugr:taskspeed dante$ git diff tests/qooxdoo-tests.js
diff --cc tests/qooxdoo-tests.js
index ae9c528,e4c003f..0000000
--- a/tests/qooxdoo-tests.js
+++ b/tests/qooxdoo-tests.js
@@@ -58,8 -58,7 +58,12 @@@ window.tests =
for (var i=0; i<40; i++)
{
++<<<<<<< HEAD
<html>
<head>
<script>
var d = document, load = function(){
// sigh. IE && Opera fire case insensitive events. (ran == 2)
// FF && Safari are case sensitive. (ran == 1)
var ran = 0, runner = function(){
ran++;
}
<!DOCTYPE html>
<html>
<head>
<title>SuperBasic Dojo Page</title>
<!-- load dojo from a CDN -->
<script src="http://o.aolcdn.com/dojo/1.4/dojo/dojo.xd.js"></script>
<script>
// document is ready for DOM action
dojo.ready(function(){
<!DOCTYPE html>
<html>
<head>
<title>SuperBasic Dojo Page with `plugd`</title>
<!-- load dojo from a CDN -->
<script src="http://o.aolcdn.com/dojo/1.4/dojo/dojo.xd.js"></script>
<!-- load plugd from google SVN server -->
<script src="http://plugd.googlecode.com/svn/trunk/base.js"></script>