This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var YUI = require('yui').YUI, | |
Y = YUI({useSync: true}); | |
Y.use('parallel'); | |
require('./second'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Y.Foo | |
// Class extensions that will be used in the base class | |
function ExtA() {} | |
... | |
Y.FooExtA = ExtA; | |
// Base Class definition | |
function FooBase() {} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SV.push({id : | |
new Y.ScrollView({ | |
srcNode: '#' + id, | |
height: 370 | |
})} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y.TabSliderParent = Y.Base.create('tabsliderparent', Y.Widget, [Y.WidgetParent], { | |
_tabNums : null, | |
initializer : function() { | |
//code | |
this._tabNums = [idnum]; | |
//code | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Test Page</title> | |
</head><body> | |
<input type="hidden" id="task1" value="Node loaded from YQL"> | |
<ul id="tasks"></ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadPageContent: function(foo) { | |
this.useComponent('PageContentInfo', function(PageContentInfo){ | |
// need a variable here... | |
// how does "foo" get in here? | |
PageContentInfo.loadPage('info'); | |
}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.useComponent('PageContentInfo', function(PageContentInfo){ | |
// need a variable here... | |
PageContentInfo.loadPage('info'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = "hello" + | |
"how" + | |
"are" + | |
"you"; |
NewerOlder