{"comment":{"created_at":"2011-10-21T18:13:49Z","body":"@peller noted that the old Dijit **_Widget.js** was broken up into **_WidgetBase.js** and **_Widget.js**.  We should probably replace **WidgetLite** with **_WidgetBase.js**.","updated_at":"2011-10-21T18:13:49Z","url":"https://api.github.com/repos/maqetta/maqetta/issues/comments/2484474","id":2484474,"user":{"avatar_url":"https://secure.gravatar.com/avatar/7aea57b6d1c49e9daf17743533d06e76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7aea57b6d1c49e9daf17743533d06e76","url":"https://api.github.com/users/jhpedemonte","id":711365,"login":"jhpedemonte"}},"action":"created","issue":{"number":1088,"created_at":"2011-10-21T18:07:48Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"\r\nWidgetLite replicates parts of various Dijit classes, where we were trying to minimize footprint when using Dijit, but given Dojo nano and AMD, better to remove this class from Maqetta and instead invoke the minimal parts of Dijit that are needed.\r\n\r\nHere is some background discussion discussion:\r\n\r\n@jonferraiolo asks:\r\n\r\nAnyone remember the reason for having davinci/workbench/WidgetLite.js? It looks like similar to dijit._WidgetsInTemplateMixin.js. The primary purpose seems to be recursively calling the Dojo parser on the innerHTML for a widget. (There is also code for destroying tooltips in WidgetLit.js, but I haven't found where those tooltips might have been created.)\r\n\r\nIt seems dangerous to replicate parts of Dojo within our code because Dojo evolves and we are likely to forget to evolve our code in parallel. Is there a handy Dojo class that we can inherit from instead of WidgetLite.js to prevent future bugs as Dojo changes underneath us?\r\n\r\nHere is result of grep on 'WidgetLite':\r\n\r\n```\r\n$ grep -rn WidgetLite *\r\nui/widgets/FileFieldDialog.js:4:dojo.require('davinci.workbench.WidgetLite');\r\nui/widgets/FileFieldDialog.js:13:dojo.declare(\"davinci.ui.widgets.FileFieldDialog\", [davinci.workbench.WidgetLite], {\r\nui/widgets/FolderSelection.js:4:dojo.require('davinci.workbench.WidgetLite');\r\nui/widgets/ThemeSelection.js:4:dojo.require('davinci.workbench.WidgetLite');\r\nve/widgets/Cascade.js:2:dojo.require('davinci.workbench.WidgetLite');\r\nve/widgets/Cascade.js:14:dojo.declare(\"davinci.ve.widgets.Cascade\",  [davinci.workbench.WidgetLite], {\r\nve/widgets/Trblbox.js:7:dojo.require('davinci.workbench.WidgetLite');\r\nve/widgets/Trblbox.js:12:dojo.declare(\"davinci.ve.widgets.Trblbox\", [davinci.workbench.WidgetLite], {\r\nworkbench/ViewLite.js:5:dojo.require(\"davinci.workbench.WidgetLite\");\r\nworkbench/ViewLite.js:7:dojo.declare(\"davinci.workbench.ViewLite\", [davinci.workbench.WidgetLite], {\r\nworkbench/WidgetLite.js:1:dojo.provide(\"davinci.workbench.WidgetLite\");\r\nworkbench/WidgetLite.js:5:dojo.declare(\"davinci.workbench.WidgetLite\", [dijit._Widget], {\r\n$ \r\n```\r\n\r\n@childsb says:\r\n\r\nWidgetLite was an attempt to make a simpler version of the dijit.widget class.\r\n\r\nBack when we first started, there was a bit of churn on the proper way to write efficient widgets.  People were saying that using dijit.widget was too heavy, so WidgetLite was an attempted best of both worlds.\r\n\r\nIt's probably safe to get rid of it and just use the dijit.widget.\r\n","comments":1,"title":"Remove WidgetLite class","updated_at":"2011-10-21T18:13:49Z","url":"https://api.github.com/repos/maqetta/maqetta/issues/1088","id":2017987,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/7e79a6eb407de124c5cb7ca320bb4ad0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7e79a6eb407de124c5cb7ca320bb4ad0","url":"https://api.github.com/users/peller","id":46139,"login":"peller"},"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/7d36042b898a8cb379cab49328f3f231?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7d36042b898a8cb379cab49328f3f231","url":"https://api.github.com/users/JonFerraiolo","id":706721,"login":"JonFerraiolo"},"html_url":"https://github.com/maqetta/maqetta/issues/1088","labels":[],"state":"open"},"legacy":{"issue_id":2017987,"comment_id":2484474}}