aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/dtl/_HtmlTemplated.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/dtl/_HtmlTemplated.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/dtl/_HtmlTemplated.js')
-rw-r--r--includes/js/dojox/dtl/_HtmlTemplated.js72
1 files changed, 0 insertions, 72 deletions
diff --git a/includes/js/dojox/dtl/_HtmlTemplated.js b/includes/js/dojox/dtl/_HtmlTemplated.js
deleted file mode 100644
index 8947a8d..0000000
--- a/includes/js/dojox/dtl/_HtmlTemplated.js
+++ /dev/null
@@ -1,72 +0,0 @@
-if(!dojo._hasResource["dojox.dtl._HtmlTemplated"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.dtl._HtmlTemplated"] = true;
-dojo.provide("dojox.dtl._HtmlTemplated");
-dojo.require("dijit._Templated");
-dojo.require("dojox.dtl.html");
-dojo.require("dojox.dtl.render.html");
-dojo.require("dojox.dtl.contrib.dijit");
-
-dojox.dtl._HtmlTemplated = {
- prototype: {
- _dijitTemplateCompat: false,
- buildRendering: function(){
- this.domNode = this.srcNodeRef;
-
- if(!this._render){
- var ddcd = dojox.dtl.contrib.dijit;
- var old = ddcd.widgetsInTemplate;
- ddcd.widgetsInTemplate = this.widgetsInTemplate;
- this._template = this._getCachedTemplate(this.templatePath, this.templateString);
- this._render = new dojox.dtl.render.html.Render(this.domNode, this._template);
- ddcd.widgetsInTemplate = old;
- }
-
- var self = this;
- this._rendering = setTimeout(function(){ self.render(); }, 10);
- },
- setTemplate: function(/*String|dojo._Url*/ template, /*dojox.dtl.Context?*/ context){
- // summary:
- // Quickly switch between templated by location
- if(dojox.dtl.text._isTemplate(template)){
- this._template = this._getCachedTemplate(null, template);
- }else{
- this._template = this._getCachedTemplate(template);
- }
- this.render(context);
- },
- render: function(/*dojox.dtl.Context?*/ context){
- if(this._rendering){
- clearTimeout(this._rendering);
- delete this._rendering;
- }
- this._render.render(this._getContext(context));
- },
- _getContext: function(context){
- if (!(context instanceof dojox.dtl.Context)) {
- context = false;
- }
- context = context || new dojox.dtl.Context(this);
- context.setThis(this);
- return context;
- },
- _getCachedTemplate: function(templatePath, templateString){
- if(!this._templates){
- this._templates = {};
- }
- var key = templateString || templatePath.toString();
- var tmplts = this._templates;
- if(tmplts[key]){
- return tmplts[key];
- }
- return (tmplts[key] = new dojox.dtl.HtmlTemplate(
- dijit._Templated.getCachedTemplate(
- templatePath,
- templateString,
- true
- )
- ));
- }
- }
-};
-
-}