Lines Matching defs:config

11     DOCUMENT = Y.config.doc,
117 init: function(node, config) {
120 if (!anim._running && config) {
121 anim._config = config;
124 anim._duration = ('duration' in config) ?
125 config.duration: anim.constructor.DEFAULT_DURATION;
127 anim._delay = ('delay' in config) ?
128 config.delay: anim.constructor.DEFAULT_DELAY;
130 anim._easing = config.easing || anim.constructor.DEFAULT_EASING;
139 addProperty: function(prop, config) {
158 if (config && config.value !== undefined) {
159 val = config.value;
160 } else if (config !== undefined) {
161 val = config;
162 config = EMPTY_OBJ;
179 dur = ((typeof config.duration != 'undefined') ? config.duration :
185 delay: (typeof config.delay != 'undefined') ? config.delay :
188 easing: config.easing || anim._easing,
220 initAttrs: function(config) {
224 if (config.transform && !config[TRANSFORM_CAMEL]) {
225 config[TRANSFORM_CAMEL] = config.transform;
226 delete config.transform; // TODO: copy
229 for (attr in config) {
230 if (config.hasOwnProperty(attr) && !Transition._reKeywords.test(attr)) {
231 this.addProperty(attr, config[attr]);
252 config = anim._config,
255 config: config
262 if (config.on && config.on.start) {
263 config.on.start.call(Y.one(node), data);
351 config = anim._config,
354 config: config,
364 if (config.on && config.on.end) {
366 config.on.end.call(nodeInstance, data);
405 config;
410 config = anim._config[name];
416 config: config
419 if (config && config.on && config.on.end) {
420 config.on.end.call(Y.one(node), data);
465 * @param {Object} config An object containing one or more style properties, a duration and an easing.
469 Y.Node.prototype.transition = function(name, config, callback) {
476 if (typeof name === 'string') { // named effect, pull config from registry
477 if (typeof config === 'function') {
478 callback = config;
479 config = null;
484 if (config && typeof config !== 'boolean') {
485 config = Y.clone(config);
489 if (! (prop in config)) {
490 config[prop] = fxConfig[prop];
495 config = fxConfig;
498 } else { // name is a config, config is a callback or undefined
499 callback = config;
500 config = name;
504 anim.init(this, config);
506 anim = new Transition(this._node, config);
513 Y.Node.prototype.show = function(name, config, callback) {
517 if (typeof config === 'function') {
518 callback = config;
519 config = name;
523 this.transition(name, config, callback);
540 Y.Node.prototype.hide = function(name, config, callback) {
542 if (typeof config === 'function') {
543 callback = config;
544 config = null;
549 if (typeof config === 'function') {
550 callback = config;
551 config = name;
555 this.transition(name, config, callback);
584 * @param {Object} config An object containing one or more style properties, a duration and an easing.
589 Y.NodeList.prototype.transition = function(config, callback) {
595 Y.one(node).transition(config, callback);