summaryrefslogtreecommitdiff
path: root/includes/js/dojox/wire/demos/WidgetRepeater.js
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/wire/demos/WidgetRepeater.js
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/wire/demos/WidgetRepeater.js')
-rw-r--r--includes/js/dojox/wire/demos/WidgetRepeater.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/includes/js/dojox/wire/demos/WidgetRepeater.js b/includes/js/dojox/wire/demos/WidgetRepeater.js
deleted file mode 100644
index ad1b8b0..0000000
--- a/includes/js/dojox/wire/demos/WidgetRepeater.js
+++ /dev/null
@@ -1,33 +0,0 @@
-if(!dojo._hasResource["dojox.wire.demos.WidgetRepeater"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.wire.demos.WidgetRepeater"] = true;
-dojo.provide("dojox.wire.demos.WidgetRepeater")
-
-dojo.require("dojo.parser");
-dojo.require("dijit._Widget");
-dojo.require("dijit._Templated");
-dojo.require("dijit._Container");
-
-dojo.declare("dojox.wire.demos.WidgetRepeater", [ dijit._Widget, dijit._Templated, dijit._Container ], {
- // summary:
- // Simple widget that does generation of widgets repetatively, based on calls to
- // the createNew function and contains them as child widgets.
- templateString: "<div class='WidgetRepeater' dojoAttachPoint='repeaterNode'></div>",
- widget: null,
- repeater: null,
- createNew: function(obj){
- // summary:
- // Function to handle the creation of a new widget and appending it into the widget tree.
- // obj:
- // The parameters to pass to the widget.
- try{
- if(dojo.isString(this.widget)){
- dojo.require(this.widget);
- this.widget = dojo.getObject(this.widget);
- }
- this.addChild(new this.widget(obj));
- this.repeaterNode.appendChild(document.createElement("br"));
- }catch(e){ console.debug(e); }
- }
-});
-
-}