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 FooModel = Y.Base.create('fooModel', Y.Model, [], { | |
| idAttribute : 'uid' | |
| }, { | |
| ATTRS : { | |
| uid : {} | |
| foo : {} | |
| } | |
| }); | |
| var foo = new FooModel({ uid: '1', foo: 'foo' }); |
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
| .yui3-overlay-pointing {} | |
| .yui3-overlay-pointer { | |
| position: absolute; | |
| display: block; | |
| width: 0px; | |
| height: 0px; | |
| border-style: solid; | |
| border-width: 10px; | |
| } | |
| .yui3-overlay-pointing-tl > .yui3-widget-stdmod, |
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.eventMethod = function (receiver, method, config) { | |
| config || (config = {}); | |
| var original = receiver[method] || noop, | |
| type = config.type || method; | |
| config.defaultFn = config.defaultFn || function(e){ | |
| original.apply(this, e.args); | |
| }; | |
| receiver[method] = function(){ |
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
| /* Based on YUI 3 CSS Grids: http://developer.yahoo.com/yui/3/cssgrids/ */ | |
| .layout { | |
| letter-spacing: -0.31em; /* webkit: collapse white-space between units */ | |
| *letter-spacing: normal; /* reset IE < 8 */ | |
| word-spacing: -0.43em; /* IE < 8 && gecko: collapse white-space between units */ | |
| } | |
| .layout > *, | |
| .layout .unit { | |
| display: inline-block; | |
| zoom: 1; *display: inline; /* IE < 8: fake inline-block */ |
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
| /** | |
| * Model Collection | |
| * | |
| * @module model | |
| * @submodule model-collection | |
| */ | |
| var ModelCollection, | |
| MODEL_COLLECTION = 'modelCollection', | |
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
| function eventWrap (event, config) { | |
| var proto = this.prototype; | |
| proto[event] = function(){ | |
| if (isString(config)) { config = isFunction(this[config]) ? this[config] : null; } | |
| if (isFunction(config)) { config = { defaultFn: config }; } | |
| this.publish(event, config); | |
| function fireEvent () { | |
| this.fire(event, { args: Y.Array(arguments) }); | |
| return this; | |
| } |
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
| // Google Map | |
| YUI.Env.DBD || (YUI.Env.DBD = {}); | |
| YUI.Env.DBD[Y.stamp(this, true)] = { map: Y.bind(this.useComponent, this, 'map') }; | |
| Y.Get.script(sub(Y.DBD.App.GOOGLE_MAPS_URL, { id : Y.stamp(this, true) })); | |
| // Statically defined: | |
| GOOGLE_MAPS_URL : 'http://maps.google.com/maps/api/js?sensor=false&callback=YUI.Env.DBD.{id}.map', |
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>ModelResource Manual Tests</title> | |
| </head> | |
| <body> | |
| <h1>ModelResource Manual Tests</h1> |
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>TTW Buttons — No JavaScript</title> | |
| <!--[if (gte IE 8)|!(IE)]><!--> | |
| <link rel="stylesheet" href="http://platform.tiptheweb.org/tip/css/button-datauri.css" /> | |
| <!--<![endif]--> |
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
| _setNewAmount : function (v) { | |
| var amountMin = TipUI.AMOUNT_MIN, | |
| amountMax = TipUI.AMOUNT_MAX; | |
| if (isString(v)) { | |
| v = parseAmount(v); | |
| } | |
| if (isNull(v)) { return v; } |