Permalink
Browse files

Gallery Build Tag: gallery-2011.05.12-13-26

  • Loading branch information...
1 parent 03a0afe commit 2e94ed29d88e54007a09bfa104a7e064c1ad313d YUI Builder committed May 12, 2011
Showing with 2,174 additions and 172 deletions.
  1. +54 −4 build/gallery-dispatcher/gallery-dispatcher-debug.js
  2. +1 −1 build/gallery-dispatcher/gallery-dispatcher-min.js
  3. +54 −4 build/gallery-dispatcher/gallery-dispatcher.js
  4. +24 −8 build/gallery-geo/gallery-geo-debug.js
  5. +1 −1 build/gallery-geo/gallery-geo-min.js
  6. +24 −8 build/gallery-geo/gallery-geo.js
  7. +218 −0 build/gallery-inline-xhr/gallery-inline-xhr-debug.js
  8. +1 −0 build/gallery-inline-xhr/gallery-inline-xhr-min.js
  9. +207 −0 build/gallery-inline-xhr/gallery-inline-xhr.js
  10. +11 −2 build/gallery-inspector/gallery-inspector-debug.js
  11. +1 −1 build/gallery-inspector/gallery-inspector-min.js
  12. +1 −2 build/gallery-inspector/gallery-inspector-plugin-debug.js
  13. +1 −1 build/gallery-inspector/gallery-inspector-plugin-min.js
  14. +1 −2 build/gallery-inspector/gallery-inspector-plugin.js
  15. +11 −2 build/gallery-inspector/gallery-inspector.js
  16. +15 −9 build/gallery-lazyloadimages/gallery-lazyloadimages-debug.js
  17. +1 −1 build/gallery-lazyloadimages/gallery-lazyloadimages-min.js
  18. +15 −9 build/gallery-lazyloadimages/gallery-lazyloadimages.js
  19. +24 −14 build/gallery-spotlight/assets/gallery-spotlight.css
  20. +102 −51 build/gallery-spotlight/gallery-spotlight-debug.js
  21. +1 −1 build/gallery-spotlight/gallery-spotlight-min.js
  22. +102 −51 build/gallery-spotlight/gallery-spotlight.js
  23. +74 −0 build/gallery-yui-tooltip/assets/gallery-yui-tooltip-core.css
  24. +114 −0 build/gallery-yui-tooltip/assets/skins/sam/gallery-yui-tooltip-skin.css
  25. +1 −0 build/gallery-yui-tooltip/assets/skins/sam/gallery-yui-tooltip.css
  26. +557 −0 build/gallery-yui-tooltip/gallery-yui-tooltip-debug.js
  27. +1 −0 build/gallery-yui-tooltip/gallery-yui-tooltip-min.js
  28. +557 −0 build/gallery-yui-tooltip/gallery-yui-tooltip.js
@@ -174,10 +174,11 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
* @param {Node} n A reference to the original SCRIPT tag Node, in case you want to get more specific attributes
*/
_executeScript: function (text, jsNode) {
- var d = ( jsNode ? jsNode.get('ownerDocument') : null ) || Y.one('doc'),
+ var doc = Y.config.doc,
+ d = ( jsNode ? jsNode.get('ownerDocument') : null ) || doc,
h = d.one('head') || d.get('documentElement'),
// creating a new script node to execute the inline javascrip code
- newScript = Y.Node.create('<' + SC + '></' + SC + '>');
+ newScript = Y.one(doc.createElement(SC));
Y.log('inline script tag: ' + text, 'info', DISPATCHER);
if (text) {
@@ -273,6 +274,15 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
q.add({
fn: function() {
instance._purgeContent();
+ /**
+ * Notification event right after purging all the event listeners associated to the
+ * Node that will be updated to avoid memory leaks. At this point, you can also destroy
+ * any object associated to that content. Immidiately after this, the new content will be
+ * injected. Use this event to clean up the mess before injecting new content.
+ *
+ * @event purge
+ * @param n {Node} a reference to the Node that was updated.
+ */
instance.fire(DISPATCHER_PURGE, n);
}
});
@@ -281,6 +291,15 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
q.add({
fn: function() {
instance._setContent(o.content);
+ /**
+ * Notification event right before starting the execution of the script tags associated
+ * to the current content. At this point, the content (without script tags) was already
+ * injected within the node, so, you can enhance that content right before process to the
+ * execution process.
+ *
+ * @event beforeExecute
+ * @param n {Node} a reference to the Node that was updated.
+ */
instance.fire(DISPATCHER_BEFOREEXECUTE, n);
}
});
@@ -299,7 +318,14 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
});
q.add({
fn: function() {
- instance.fire(DISPATCHER_READY);
+ /**
+ * Notification event when the new content gets injected and scripts loaded and executed
+ * as well. This is the event that you should listen for to continue your programm after
+ * dispatcher finishes the whole process.
+ *
+ * @event ready
+ */
+ instance.fire(DISPATCHER_READY);
}
});
// executing the queue
@@ -346,6 +372,14 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
failure: function(tid, o) {
Y.log('Failure: ' + uri, 'warn', DISPATCHER);
_propagateIOEvent ('failure', defIOConfig, arguments);
+ /**
+ * Notification event when dispatcher fails to load the new url
+ * using io, or fails to load an external script using Y.Get.script.
+ * Use this event to fallback if an error occur.
+ *
+ * @event error
+ * @param o {object} error object from IO or Get.
+ */
instance.fire(DISPATCHER_ERROR, o);
},
end: function() {
@@ -463,9 +497,25 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
var instance = this;
Y.log('setting status to ' + v, 'info', DISPATCHER);
if (v) {
+ /**
+ * Notification event when dispatcher starts the loading process
+ * using io. Equivalent to Y.on('io:start'). Right before this event, dispatcher
+ * adds the loading class from the node. This event will be triggered before the
+ * function defined under attribute "ioConfig.start".
+ *
+ * @event fetch
+ */
instance.fire(DISPATCHER_FETCH);
instance.get(ATTR_NODE).addClass(CLASS_DISPATCHER_LOADING);
} else {
+ /**
+ * Notification event when dispatcher finishes the loading process
+ * using io. Equivalent to Y.on('io:end'). Right after this event, dispatcher
+ * removes the loading class from the node.This event will be triggered before the
+ * function defined under attribute "ioConfig.end".
+ *
+ * @event load
+ */
instance.fire(DISPATCHER_LOAD);
instance.get(ATTR_NODE).removeClass(CLASS_DISPATCHER_LOADING);
}
@@ -488,4 +538,4 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
});
-}, 'gallery-2011.03.02-20-58' ,{requires:['base', 'node-base', 'io-base', 'get', 'async-queue', 'classnamemanager']});
+}, 'gallery-2011.05.12-13-26' ,{requires:['base', 'node-base', 'io-base', 'get', 'async-queue', 'classnamemanager']});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -171,10 +171,11 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
* @param {Node} n A reference to the original SCRIPT tag Node, in case you want to get more specific attributes
*/
_executeScript: function (text, jsNode) {
- var d = ( jsNode ? jsNode.get('ownerDocument') : null ) || Y.one('doc'),
+ var doc = Y.config.doc,
+ d = ( jsNode ? jsNode.get('ownerDocument') : null ) || doc,
h = d.one('head') || d.get('documentElement'),
// creating a new script node to execute the inline javascrip code
- newScript = Y.Node.create('<' + SC + '></' + SC + '>');
+ newScript = Y.one(doc.createElement(SC));
if (text) {
newScript._node.text = text;
@@ -263,6 +264,15 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
q.add({
fn: function() {
instance._purgeContent();
+ /**
+ * Notification event right after purging all the event listeners associated to the
+ * Node that will be updated to avoid memory leaks. At this point, you can also destroy
+ * any object associated to that content. Immidiately after this, the new content will be
+ * injected. Use this event to clean up the mess before injecting new content.
+ *
+ * @event purge
+ * @param n {Node} a reference to the Node that was updated.
+ */
instance.fire(DISPATCHER_PURGE, n);
}
});
@@ -271,6 +281,15 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
q.add({
fn: function() {
instance._setContent(o.content);
+ /**
+ * Notification event right before starting the execution of the script tags associated
+ * to the current content. At this point, the content (without script tags) was already
+ * injected within the node, so, you can enhance that content right before process to the
+ * execution process.
+ *
+ * @event beforeExecute
+ * @param n {Node} a reference to the Node that was updated.
+ */
instance.fire(DISPATCHER_BEFOREEXECUTE, n);
}
});
@@ -289,7 +308,14 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
});
q.add({
fn: function() {
- instance.fire(DISPATCHER_READY);
+ /**
+ * Notification event when the new content gets injected and scripts loaded and executed
+ * as well. This is the event that you should listen for to continue your programm after
+ * dispatcher finishes the whole process.
+ *
+ * @event ready
+ */
+ instance.fire(DISPATCHER_READY);
}
});
// executing the queue
@@ -332,6 +358,14 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
},
failure: function(tid, o) {
_propagateIOEvent ('failure', defIOConfig, arguments);
+ /**
+ * Notification event when dispatcher fails to load the new url
+ * using io, or fails to load an external script using Y.Get.script.
+ * Use this event to fallback if an error occur.
+ *
+ * @event error
+ * @param o {object} error object from IO or Get.
+ */
instance.fire(DISPATCHER_ERROR, o);
},
end: function() {
@@ -447,9 +481,25 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
setter: function(v) {
var instance = this;
if (v) {
+ /**
+ * Notification event when dispatcher starts the loading process
+ * using io. Equivalent to Y.on('io:start'). Right before this event, dispatcher
+ * adds the loading class from the node. This event will be triggered before the
+ * function defined under attribute "ioConfig.start".
+ *
+ * @event fetch
+ */
instance.fire(DISPATCHER_FETCH);
instance.get(ATTR_NODE).addClass(CLASS_DISPATCHER_LOADING);
} else {
+ /**
+ * Notification event when dispatcher finishes the loading process
+ * using io. Equivalent to Y.on('io:end'). Right after this event, dispatcher
+ * removes the loading class from the node.This event will be triggered before the
+ * function defined under attribute "ioConfig.end".
+ *
+ * @event load
+ */
instance.fire(DISPATCHER_LOAD);
instance.get(ATTR_NODE).removeClass(CLASS_DISPATCHER_LOADING);
}
@@ -472,4 +522,4 @@ Y.Dispatcher = Y.Base.create(DISPATCHER, Y.Base, [], {
});
-}, 'gallery-2011.03.02-20-58' ,{requires:['base', 'node-base', 'io-base', 'get', 'async-queue', 'classnamemanager']});
+}, 'gallery-2011.05.12-13-26' ,{requires:['base', 'node-base', 'io-base', 'get', 'async-queue', 'classnamemanager']});
Oops, something went wrong.

0 comments on commit 2e94ed2

Please sign in to comment.