Skip to content

Instantly share code, notes, and snippets.

View tivac's full-sized avatar
💭
👋🏻🙃

Pat Cavit tivac

💭
👋🏻🙃
View GitHub Profile
@tivac
tivac / gist:570686
Created September 8, 2010 19:34 — forked from apipkin/gist:570683
}).use('gallery-event-nav-keys',
'echofin-modal',
'echofin-loadscreen',
'echofin-autosave',
'echofin-component-menu',
/*'echofin-component-select',*/
'echofin-recyclebin',
'echofin-sidebar',
'echofin-ui',
'echofin-form',
new Y.Test.Case({
name : "Y.isEmpty Tests",
"boolean should be false" : function() {
Y.Assert.isFalse(Y.isEmpty(false));
},
"empty string should be true" : function() {
Y.Assert.isTrue(Y.isEmpty(""));
},
Y.on(
"click",
function (e) {
var function_code = e.target.get("id").split("-")[1];
Y.log('handling click...' + function_code, "info", log_key);
var container = Y.one("#manage_action");
Y.io(
menu_config["base_url"] + function_code,
function moveIt(checkbox) {
var pos = checkbox.value,
moz = document.getElementById('moz'),
moz1 = document.getElementById('moz1'),
moz2 = document.getElementById('moz2'),
moz3 = document.getElementById('moz3');
switch (pos) {
case "nw" :
moz.style.visibility = (checkbox.checked === true) ? "visible" : "hidden";
@tivac
tivac / gist:185607
Created September 11, 2009 21:43 — forked from lsmith/gist:185604
function Foo() {
/* constructor stuff */
}
// apply a class prototype that includes private and public methods
(function () {
function private(x) {
return x + 1;
}