Last change
on this file since 466 was
466,
checked in by hendrikvanantwerpen, 12 years ago
|
Added authentication (fixed user now).
|
File size:
413 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "../app/Router", |
---|
3 | "dijit/MenuItem", |
---|
4 | "dojo/_base/declare", |
---|
5 | "dojo/_base/event" |
---|
6 | ], function(Router, MenuItem, declare, event) { |
---|
7 | return declare([MenuItem],{ |
---|
8 | options:{ |
---|
9 | path: null |
---|
10 | }, |
---|
11 | onClick: function(evt) { |
---|
12 | if ( this.path ) { Router.go(this.path); } |
---|
13 | if ( evt ) { event.stop(evt); } |
---|
14 | return false; |
---|
15 | } |
---|
16 | }); |
---|
17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.