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
| /* TTW.Button CSS */ | |
| .ttw-button-small, | |
| .ttw-button-large, | |
| .ttw-button-custom { | |
| position: relative; | |
| display: inline-block; | |
| /* display: inline; for IE7 in JS */ | |
| zoom: 1; | |
| outline: none; |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="cssembed" default="build_css"> | |
| <!-- dirs --> | |
| <property name="libdir" value="${basedir}/lib" /> | |
| <property name="sourcedir" value="${basedir}/source" /> | |
| <property name="outputdir" value="${basedir}/build" /> | |
| <!-- ant utils --> |
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
| YUI({ | |
| "base" : "http://tiptheweb.org/yui3/_v_3.3.0.PR3/", | |
| "comboBase" : "http://tiptheweb.org/combo/?", | |
| "root" : "yui3/_v_3.3.0.PR3/", | |
| "combine" : true, | |
| "loadOptional" : false, | |
| "allowRollup" : false, | |
| "groups" : { | |
| "utils" : { |
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 class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/). | |
| * @module yql | |
| */ | |
| /** | |
| * Utility Class used under the hood my the YQL class | |
| * @class YQLRequest | |
| * @constructor | |
| * @param {String} sql The SQL statement to execute | |
| * @param {Function/Object} callback The callback to execute after the query (Falls through to JSONP). |
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
| /** | |
| * CaseWindow | |
| */ | |
| var CaseWindow, | |
| CASE_WINDOW = 'caseWindow', | |
| ATTRS = {}, | |
| VIEWS = {}, | |
| USER_ID = 'userID', |
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
| // See http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Reserved_Words | |
| // JavaScript 1.5 reserved words | |
| reserved.add("break"); | |
| reserved.add("case"); | |
| reserved.add("catch"); | |
| reserved.add("continue"); | |
| reserved.add("default"); | |
| reserved.add("delete"); | |
| reserved.add("do"); |
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
| // the main difference between the new and current is convenience around writing text in node. | |
| // also a new .node() method which return the Y.Node instance (.getNode() still exits). | |
| // appends <h2>The New <a href="http://oddnut.com/markout/">Markout API</a></h2> to #foo | |
| Y.Markout('#foo').h2('The New ').a({ href: 'http://oddnut.com/markout/' }, 'Markout API'); | |
| // appends <div></div> to #foo references the Y.Node instance through the .node method. | |
| Y.Markout().div().node().appendTo('#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
| head.link(REL_STYLESHEET, TYPE_TEXT_CSS, relHref( | |
| combo() | |
| .add(yui3(), | |
| "cssreset/reset-min.css", | |
| "cssfonts/fonts-min.css", | |
| "cssgrids/grids-min.css") | |
| .add(resources(), | |
| "css/base.css", | |
| "css/button.css", | |
| "css/style.css", |