http://yuilibrary.com/yui/docs/api/files/app_js_app-base.js.html#l555 http://yuilibrary.com/yui/docs/api/files/app_js_view.js.html#l323 http://yuilibrary.com/yui/docs/api/files/autocomplete_js_autocomplete-base.js.html#l369 http://yuilibrary.com/yui/docs/api/files/autocomplete_js_autocomplete-base.js.html#l576 http://yuilibrary.com/yui/docs/api/files/autocomplete_js_autocomplete-base.js.html#l598 http://yuilibrary.com/yui/docs/api/files/autocomplete_js_autocomplete-base.js.html#l618 http://yuilibrary.com/yui/docs/api/files/autocomplete_js_autocomplete-base.js.html#l661 http://yuilibrary.com/yui/docs/api/files/datatable_js_core.js.html#l684 http://yuilibrary.com/yui/docs/api/files/get_js_get.js.html#l440 http://yuilibrary.com/yui/docs/api/files/widget-position-align_js_Widget-PositionAlign.js.html#l275
This file contains 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 doesn't work due to some limitations in indexedDB | |
// It's just an example | |
// I'd like to be able to write: | |
Y.IndexedDB.open('mydb').store('myStore').put({ | |
foo: 'bar' | |
}); | |
/*************************** |
This file contains 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
TabView boundingBox --> <div class="yui3-widget yui3-tabview"> | |
TabView contentBox --> <div id="demo" class="yui3-tabview-content"> | |
TabView listNode --> <ul class="yui3-tabview-list"> | |
Tab boundingBox --> <li class="yui3-tab yui3-widget yui3-tab-selected"> | |
Tab contentBox --> <a href="#foo" class="yui3-tab-label yui3-tab-content">foo</a> | |
</li> | |
</ul> | |
TabView panelNode --> <div class="yui3-tabview-panel"> | |
Tab panelNode --> <div id="foo" class="yui3-tab-panel">foo content</div> | |
</div> |
This file contains 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
<script type="text/javascript"> | |
YUI().use('datatable', function (Y) { | |
var datatable = new Y.DataTable(/* ... */); | |
Y.config.win.myCallback = function () { | |
// update datatable | |
}; | |
}); | |
</script> | |
<script type="text/javascript" for="MyControl" event="ReceiveMessage(msg)"> |
This file contains 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
src | |
|_ json | |
|_ js | |
| |_ foo.js | |
| | |
|_ meta | |
| |_ foo.json | |
| |_ foo-test.js | |
| | |
|_ build.json |
This file contains 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
{ | |
"name": "foo", | |
"builds": { | |
"foo": { | |
"jsfiles": [ | |
"foo.js" | |
] | |
}, | |
"foo-fallback": { | |
"jsfiles": [ |
This file contains 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
class EventEmitter extends Set { | |
constructor(owner) { | |
super(); | |
this._owner = owner; | |
} | |
add(fn) { | |
super.add(listener); | |
return { |
This file contains 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
YUI.add('mywidget-template', function (Y) { | |
Y.namespace('templates').mywidget = '<a href="#">{{foo}}</a>'; | |
}, '0.0.1', {requires: ['substitute']}); |
This file contains 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
function Stack(config) { | |
this.host = config.host; | |
Stack._instances.push(this); | |
this.host.on('mousedown', this.bringToFront, this); | |
} | |
Stack.NS = 'stack'; | |
Stack._instances = []; | |
Y.mix(Stack.prototype, { | |
_unlist: function () { | |
var i = 0, |
This file contains 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
YUI.add('foo', function (Y) { | |
Y.foo = 'foo'; | |
}); |