-/*
- * This file is included in tophat_render.php
- */
-
/* getting random error messages with this... -- jordan
wait until query code is fixed
jQuery(document).ready(function() {
}
/* https://gist.github.com/661855 */
-(function(jQuery) {
+(function($) {
- var o = jQuery({});
+ var o = $({});
- jQuery.subscribe = function( types, selector, data, fn) {
+ $.subscribe = function( types, selector, data, fn) {
/* borrowed from jQuery */
if ( data == null && fn == null ) {
// ( types, fn )
}]);
};
- jQuery.unsubscribe = function() {
+ $.unsubscribe = function() {
o.off.apply(o, arguments);
};
- jQuery.publish = function() {
+ $.publish = function() {
o.trigger.apply(o, arguments);
};
}(jQuery));
-function executeFunctionByName(functionName, context /*, args */) {
- var args = Array.prototype.slice.call(arguments).splice(2);
- var namespaces = functionName.split(".");
- var func = namespaces.pop();
- for(var i = 0; i < namespaces.length; i++) {
- context = context[namespaces[i]];
- }
- return context[func].apply(this, args);
-}
+//function executeFunctionByName(functionName, context /*, args */) {
+// var args = Array.prototype.slice.call(arguments).splice(2);
+// var namespaces = functionName.split(".");
+// var func = namespaces.pop();
+// for(var i = 0; i < namespaces.length; i++) {
+// context = context[namespaces[i]];
+// }
+// return context[func].apply(this, args);
+//}