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
| // Note that _disabledRules is also added to constructor. | |
| // These are the public API methods. | |
| /** | |
| * Enable a particular rule (or several) that's previously been disabled. | |
| * The selector parameter can be a RegExp; each rule matching the pattern | |
| * will be enabled | |
| * @param sel {String} String or RegExp to match to selectors to enable | |
| * @method enableRule |
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.add('fielddef', function (Y) { | |
| /** | |
| * A field definition sets up everything except the actual value of a field. | |
| * | |
| */ | |
| Y.FieldDef = Y.Base.create( |
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
| // A rough idea for a RecordSetIndex plugin | |
| // Filtering, searching, sorting on the host RecordSet could use the index if | |
| // it's available (possibly creating it the first time someone does a sort or whatever) | |
| // So RecordSet.filter() should be something like: | |
| /* | |
| filter: function(k,v) { | |
| if (this.hasIndex(k)) { | |
| return this.getIndex(k).find(v); | |
| } else { | |
| // proceed as normal! |
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.ArrayListEvents fires some events for ArrayList. | |
| * 8/10/10: update - Added events for everything, pretty much, | |
| * and added nicer signatures for subscribers | |
| * Also changed the name slightly (from Y.ArrayListEventProvider) | |
| */ | |
| Y.ArrayListEvents = Y.Base.create( | |
| 'arraylistevents', | |
| Y.Plugin.Base, |
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.add("arraySet", function (Y) { | |
| "use strict"; | |
| var A = Y.Array, | |
| L = Y.Lang, | |
| iO = A.indexOf; | |
| /** |
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
| /** | |
| * | |
| * | |
| * | |
| * | |
| * mediaViewScrollview | |
| * | |
| * | |
| * | |
| * |
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.add("arraySet-tests", function (Y) { | |
| var ASSERT = Y.Assert, | |
| ARRAYASSERT = Y.ArrayAssert; | |
| var testSimpleIntersects = new Y.Test.Case({ | |
| name: "Test of simple arrays of numbers, strings", | |
| testNumbers: 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
| // relates to YUI ticket http://yuilibrary.com/projects/yui3/ticket/2532864 | |
| // | |
| // | |
| YUI.add("graphics-static-chooser", function (Y) { | |
| // | |
| // | |
| // Loading graphics (statically) using the configurator is tricky, | |
| // because it feature detects on the browser you're using the configurator |
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
| /** | |
| Generates a series of colors from startColor at various offsets | |
| @protected | |
| @method _getOffsetAndFinish | |
| @param {String} startColor Start color | |
| @param {Array} arrOffsets Array of colors | |
| @param {String} [to] | |
| @returns {Array} Of offsetted and finished colors | |
| **/ | |
| _getOffsetAndFinish: function (startColor, arrOffsets, to) { |