Permalink
Browse files

Removed old test files

  • Loading branch information...
1 parent 73db168 commit f68e8470bf87bb90ee8dc0de40292ab29ef7b0f9 @davglass davglass committed Oct 23, 2009
@@ -1,21 +0,0 @@
-# Textarea Tab Control Build Properties
-
-# As long as the 'builder' project is cloned to the default folder
-# next to the 'yui3-gallery' project folder, the 'builddir' property does not
-# need to be changed
-#
-# If the 'builder' project is checked out to an alternate location, this
-# property should be updated to point to the checkout location.
-builddir=../../../builder/componentbuild
-
-# The name of the component. E.g. event, attribute, widget
-component=gallery-tabby
-
-# The list of files which should be concatenated to create the component.
-# NOTE: For a css component (e.g. cssfonts, cssgrids etc.) use component.cssfiles instead.
-# component.jsfiles=tabby.js, tabbyHelperClass.js, tabbySubComponentClass.js
-component.jsfiles=tabby.js
-
-# The list of modules this component requires. Used to set up the Y.add module call for YUI 3.
-component.requires=node, event
-
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- YUI 3 Gallery Component Build File -->
-<project name="Textarea Tab Control" default="local">
- <description>Textarea Tab Control Build File</description>
- <property file="build.properties" />
- <import file="${builddir}/3.x/bootstrap.xml" description="Default Build Properties and Targets" />
-</project>
@@ -1,53 +0,0 @@
- Y.Tabby = function(selector) {
- if (selector === '') {
- Y.error('No Selector Given');
- }
- this._selector = selector;
- this.charCode = String.fromCharCode(9);
- this._handles = [];
- };
-
- Y.Tabby.prototype = {
- _textareas: null,
- _selector: null,
- _handles: null,
- charCode: null,
- activate: function() {
- this._textareas = Y.all(this._selector);
- if (this._textareas) {
- this._textareas.each(function(v) {
- this._handles.push(v.on('keydown', Y.bind(this._handleKeyDown, this)));
- }, this);
- }
- },
- deactivate: function() {
- Y.each(this._handles, function(v) {
- v.detach();
- });
- },
- _handleKeyDown: function(e) {
- var key = e.keyCode, tar = e.target, st = tar.get('scrollTop'),
- value = tar.get('value'), range,
- selStart = tar.get('selectionStart'), selEnd = tar.get('selectionEnd');
-
- if (key == 9) {
- e.halt();
- if (Y.UA.ie) {
- range = document.selection.createRange();
- //Only insert a tab when nothing is selected.
- if (range.text === '') {
- range.text = this.charCode;
- range.collapse(false);
- range.select();
- }
- } else {
- //Only insert a tab when nothing is selected.
- if (selStart == selEnd) {
- value = value.substring(0, selStart) + this.charCode + value.substring(selStart);
- e.target.set('value', value);
- }
- }
- e.target.set('scrollTop', st);
- }
- }
- };
@@ -1,24 +0,0 @@
-# YQL Query Build Properties
-
-# As long as the 'builder' project is cloned to the default folder
-# next to the 'yui3-gallery' project folder, the 'builddir' property does not
-# need to be changed
-#
-# If the 'builder' project is checked out to an alternate location, this
-# property should be updated to point to the checkout location.
-builddir=../../../builder/componentbuild
-
-# The name of the component. E.g. event, attribute, widget
-component=gallery-yql
-
-# The list of files which should be concatenated to create the component.
-# NOTE: For a css component (e.g. cssfonts, cssgrids etc.) use component.cssfiles instead.
-component.jsfiles=yql.js
-
-# The list of modules this component requires. Used to setup the Y.add module call for YUI 3.
-# NOTE: For a css component, this property is not used/required.
-
-# component.use, component.supersedes, component.optional and component.skinnable are other properties which can be defined
-component.requires=get, event-custom
-
-
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- YUI 3 Gallery Component Build File -->
-<project name="YQL Query" default="local">
- <description>YQL Query Build File</description>
- <property file="build.properties" />
- <import file="${builddir}/3.x/bootstrap.xml" description="Default Build Properties and Targets" />
-</project>
@@ -1,128 +0,0 @@
- //Global storage for the callbacks
- if (!YUI.yql) {
- YUI.yql = {};
- }
- /**
- * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/).
- * @module yql
- */
- /**
- * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/).
- * @class yql
- * @extends Event.Target
- * @constructor
- * @param {String} sql The SQL statement to execute
- * @param {Function} callback The callback to execute after the query (optional).
- * @param {Object} params An object literal of extra parameters to pass along (optional).
- * @param {Object} opts An object literal of extra options to pass along to the Get Utility (optional).
- */
- var BASE_URL = 'http:/'+'/query.yahooapis.com/v1/public/yql?',
- yql = function (sql, callback, params, opts) {
- yql.superclass.constructor.apply(this);
- this._query(sql, callback, params, opts);
- };
-
- Y.extend(yql, Y.EventTarget, {
- /**
- * @private
- * @property _cb
- * @description The callback method
- */
- _cb: null,
- /**
- * @private
- * @property _stamp
- * @description The method name on the Global YUI object we use as the callback.
- */
- _stamp: null,
- /**
- * @private
- * @method _receiver
- * @description The global callback that get's called from Get.
- * @param {Object} q The JSON object from YQL.
- */
- _receiver: function(q) {
- if (q.query) {
- this.fire('query', q.query);
- }
- if (q.error) {
- this.fire('error', q.error);
- }
- if (this._cb) {
- this._cb(q);
- }
- delete YUI.yql[this._stamp];
- },
- /**
- * @private
- * @method _query
- * @description Builds the query and fire the Get call.
- * @param {String} sql The SQL statement to execute
- * @param {Function} callback The callback to execute after the query (optional).
- * @param {Object} params An object literal of extra parameters to pass along (optional).
- * @param {Object} opts An object literal of extra options to pass along to the Get Utility (optional).
- * @return Self
- */
- _query: function(sql, callback, params, opts) {
- var st = Y.stamp({}), qs = '', url;
- //Must replace the dashes with underscrores
- st = st.replace(/-/g, '_');
-
- this._stamp = st;
-
- this._cb = callback;
-
- YUI.yql[st] = Y.bind(this._receiver, this);
-
- if (!params) {
- params = {};
- }
- params.q = sql;
- params.format = 'json';
- params.callback = "YUI.yql." + st;
- if (!params.env) {
- params.env = 'http:/'+'/datatables.org/alltables.env';
- }
-
- Y.each(params, function(v, k) {
- qs += k + '=' + encodeURIComponent(v) + '&';
- });
-
- if (!opts) {
- opts = {};
- }
- opts.autopurge = true;
- opts.context = this;
- opts.onTimeout = function(o){
- this.fire('timeout', o);
- if (this._cb) {
- this._cb(o);
- this._cb = null;
- }
- };
-
- url = BASE_URL + qs;
- Y.Get.script(url, opts);
- return this;
- }
- });
- /**
- * @event query
- * @description Fires when the Query returns.
- * @type {Event.Custom}
- */
-
- /**
- * @event error
- * @description Fires when an error occurs.
- * @type {Event.Custom}
- */
-
- /**
- * @event timeout
- * @description Fires when the request has timed-out.
- * @type {Event.Custom}
- */
-
- Y.yql = yql;
-

0 comments on commit f68e847

Please sign in to comment.