You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/01/11 10:45:20 UTC
svn commit: r1057549 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: lofwyr
Date: Tue Jan 11 09:45:20 2011
New Revision: 1057549
URL: http://svn.apache.org/viewvc?rev=1057549&view=rev
Log:
cleanup
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1057549&r1=1057548&r2=1057549&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Tue Jan 11 09:45:20 2011
@@ -453,18 +453,14 @@ var Tobago = {
},
destroyObject: function(obj) {
- if (obj.addMenuItem) {
- // Menu Object
- Tobago.Menu.destroy(obj);
- } else if (obj.initSelection) {
+ if (obj.initSelection) {
// Tree object
Tobago.Tree.destroy(obj);
} else if (obj.htmlElement) {
// test
delete obj.htmlElement.jsObjects;
delete obj.htmlElement;
- }
- else {
+ } else {
// Unknown Object --> delete all properties
if (typeof obj == 'Object') {
this.destroyJsObject(obj);