Skip to content

Instantly share code, notes, and snippets.

View ericf's full-sized avatar

Eric Ferraiuolo ericf

View GitHub Profile
@ericf
ericf / app.js
Created May 23, 2012 16:19 — forked from jshirley/app.js
var YUI = require('yui').YUI,
Y = YUI({useSync: true});
Y.use('parallel');
require('./second');
// For Y.Foo
// Class extensions that will be used in the base class
function ExtA() {}
...
Y.FooExtA = ExtA;
// Base Class definition
function FooBase() {}
...
var MyClass = Y.Base.create('my-class', Y.Base, [], {
_mergeProps: function (value, prop) {
var cur = this.get(prop);
if (Y.Lang.isUndefined(cur)) {
this.reset(prop); // will rest to { test: true } for this instance instead of always using the static default values
}
return Y.merge(cur, value);
}
}, {
ATTRS: {
In the table:
<inputs>
<key id="url" type="xs:string" paramType="variable" required="true" />
<key id="timeout" type="xs:integer" paramType="variable" required="false" default="25000" />
<map id="integrations" type="xs:string" paramType="variable" required="true" />
</inputs>
In the .env file:
SV.push({id :
new Y.ScrollView({
srcNode: '#' + id,
height: 370
})}
);
Y.TabSliderParent = Y.Base.create('tabsliderparent', Y.Widget, [Y.WidgetParent], {
_tabNums : null,
initializer : function() {
//code
this._tabNums = [idnum];
//code
});
@ericf
ericf / gist:564486
Created September 3, 2010 20:12 — forked from lsmith/gist:564394
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head><body>
<input type="hidden" id="task1" value="Node loaded from YQL">
<ul id="tasks"></ul>
loadPageContent: function(foo) {
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
// how does "foo" get in here?
PageContentInfo.loadPage('info');
});
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
PageContentInfo.loadPage('info');
});
var a = "hello" +
"how" +
"are" +
"you";