Changeset 407 for Dev/branches/rest-dojo-ui/client/rft/ui/Breadcrumbs.js
- Timestamp:
- 09/05/12 14:41:13 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:ignore
-
old new 1 1 nbproject 2 2 .project 3 release
-
- Property svn:ignore
-
Dev/branches/rest-dojo-ui/client
- Property svn:externals
-
old new 1 dojotoolkit http://svn.dojotoolkit.org/src/tags/release-1.8.0 1 dojo http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojo 2 dijit http://svn.dojotoolkit.org/src/tags/release-1.8.0/dijit 3 dojox http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojox 4 util http://svn.dojotoolkit.org/src/tags/release-1.8.0/util
-
- Property svn:externals
-
Dev/branches/rest-dojo-ui/client/rft/ui/Breadcrumbs.js
r406 r407 5 5 'dojo/dom-class', 6 6 'dojo/topic', 7 'dijit/_WidgetBase' 8 ], function(declare, baseArray, Button, domClass, topic, _WidgetBase){ 9 return declare('rft.ui.Breadcrumbs', [_WidgetBase], { 7 'dijit/_WidgetBase', 8 '../app/Controller' 9 ], function(declare, baseArray, Button, domClass, topic, _WidgetBase,Controller){ 10 return declare([_WidgetBase], { 10 11 _crumbs: [], 11 12 … … 14 15 }, 15 16 _getIndexOf: function(label) { 16 dojo.forEach(this._crumbs, function(crumb, index){17 if (crumb.label == label) {17 baseArray.forEach(this._crumbs, function(crumb, index){ 18 if (crumb.label === label) { 18 19 return index; 19 20 } … … 31 32 var removals = this._crumbs.slice(index+1); 32 33 this._crumbs = this._crumbs.slice(0, index+1); 33 dojo.forEach(removals, function(removal){34 baseArray.forEach(removals, function(removal){ 34 35 removal.widget.destroyRecursive(false); // boolean "keepDOMnode" 35 36 }, this); … … 60 61 iconClass: "dijitNoIcon", 61 62 onClick: lang.hitch(this, function(){ 62 rft.api.loadPage(path); // TODO: fix this call!63 Controller.go(path); // TODO: fix this call! 63 64 }) 64 65 }); 65 66 }, 66 67 _createBreadcrumbs: function() { 67 dojo.forEach(this._crumbs, function(crumb, index){68 baseArray.forEach(this._crumbs, function(crumb, index){ 68 69 if (!crumb.widget) { 69 70 crumb.widget = this._createBreadcrumb(crumb.label, crumb.path);
Note: See TracChangeset
for help on using the changeset viewer.