Skip to content
Browse files

Merge branch 'live-docs'

  • Loading branch information...
2 parents 223bcba + 3169ede commit cb75c741d1cbc0abf808b9d1da8aa494b44479f5 @ericf ericf committed
View
486 build/node-core/node-core-coverage.js
244 additions, 242 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
4 build/node-core/node-core-debug.js
@@ -708,7 +708,9 @@ Y.mix(Y_Node.prototype, {
},
/**
- * Nulls internal node references, removes any plugins and event listeners
+ * Nulls internal node references, removes any plugins and event listeners.
+ * Note that destroy() will not remove the node from its parent or from the DOM. For that
+ * functionality, call remove(true).
* @method destroy
* @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the
* node's subtree (default is false)
View
4 build/node-core/node-core.js
@@ -707,7 +707,9 @@ Y.mix(Y_Node.prototype, {
},
/**
- * Nulls internal node references, removes any plugins and event listeners
+ * Nulls internal node references, removes any plugins and event listeners.
+ * Note that destroy() will not remove the node from its parent or from the DOM. For that
+ * functionality, call remove(true).
* @method destroy
* @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the
* node's subtree (default is false)
View
40 src/node/docs/partials/dom-node-source.mustache
@@ -17,27 +17,31 @@
<script type="text/javascript">
YUI().use('node', function(Y) {
- var onClick = function(e) {
- var item = e.currentTarget,
- list2 = Y.one('#demo2');
-
- if (item.get('parentNode') === list2) { // remove if list2
- item.remove(); // sugar for item.get('parentNode').removeChild(item);
-
- if (list2.all('li').size() < 1) { // hide the list if its empty
- list2.hide();
- }
- } else {
- if (list2.getStyle('display') === 'none') {
- list2.show();
- }
-
- list2.append(item.cloneNode(true));
+ var list2 = Y.one('#demo2');
+
+ var onList1Click = function(e) {
+ var item = e.currentTarget;
+
+ if (list2.getStyle('display') === 'none') {
+ list2.show();
+ }
+
+ list2.append(item.cloneNode(true));
+
+ };
+
+ var onList2Click = function(e) {
+ var item = e.currentTarget;
+
+ item.remove(); // sugar for item.get('parentNode').removeChild(item);
+
+ if (list2.all('li').size() < 1) { // hide the list if its empty
+ list2.hide();
}
};
- Y.one('#demo').delegate('click', onClick, 'li');
- Y.one('#demo2').delegate('click', onClick, 'li');
+ Y.one('#demo').delegate('click', onList1Click, 'li');
+ Y.one('#demo2').delegate('click', onList2Click, 'li');
});
</script>
View
4 src/node/js/node-core.js
@@ -706,7 +706,9 @@ Y.mix(Y_Node.prototype, {
},
/**
- * Nulls internal node references, removes any plugins and event listeners
+ * Nulls internal node references, removes any plugins and event listeners.
+ * Note that destroy() will not remove the node from its parent or from the DOM. For that
+ * functionality, call remove(true).
* @method destroy
* @param {Boolean} recursivePurge (optional) Whether or not to remove listeners from the
* node's subtree (default is false)
View
3 src/panel/docs/partials/panel-animate-css-source.mustache
@@ -19,6 +19,9 @@
text-align: center;
}
+#panelContent.yui3-widget-loading {
+ display: none;
+}
.yui3-skin-sam .yui3-widget-mask {
background-color: #223460;
View
2 src/panel/docs/partials/panel-animate-html-source.mustache
@@ -24,7 +24,7 @@ eros facilisis vel. Duis tristique porttitor risus, vel laoreet ligula mollis
vitae. Nam ornare justo a turpis mattis cursus.
</p>
-<div id="panelContent">
+<div id="panelContent" class="yui3-widget-loading">
<div class="yui3-widget-hd">
Showing an animated panel
</div>

0 comments on commit cb75c74

Please sign in to comment.
Something went wrong with that request. Please try again.