Changeset 410 for Dev/branches/rest-dojo-ui/client/rft/ui/Notifications.js
- Timestamp:
- 09/07/12 16:59:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui/Notifications.js
r407 r410 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/connect','dojox/widget/Toaster'], 2 function(declare,lang,connect,Toaster){ 3 return declare([Toaster],{ 4 positionDirection: "br-up", 5 duration: 1000, 6 postCreate: function() { 7 this.inherited(arguments); 8 this.handle = connect.subscribe('/rft/notify',lang.hitch(this,function(notification){ 9 this.setContent(notification.text,notification.type || 'message'); 10 })); 11 }, 12 destroy: function() { 13 connect.unsubscribe(this.handle); 14 this.inherited(arguments); 15 } 16 }); 1 define(['dojo/_base/declare','dojo/_base/lang','dojox/widget/Toaster'], 2 function(declare,lang,Toaster){ 3 return declare([Toaster],{ 4 positionDirection: "br-up", 5 duration: 1000 17 6 }); 7 });
Note: See TracChangeset
for help on using the changeset viewer.