dojox/dtl/Context.js

  • Provides:

    • dojox.dtl.Context
  • Requires:

    • dojox.dtl._base in common
  • dojox.dtl.Context

    • type
      Function
    • parameters:
      • dict: (typeof )
    • source: [view]
       this._this = {};
       dojox.dtl._Context.call(this, dict);
    • chains:
      • dojox.dtl._Context: (call)
    • mixins:
      • dojox.dtl._Context.prototype: (prototype)
      • dojox.dtl._Context.prototype: (prototype)
    • summary
  • dojox.dtl.Context._this

    • summary
  • dojox.dtl.Context.getKeys

    • type
      Function
    • source: [view]
        var keys = [];
        for(var key in this){
         if(this.hasOwnProperty(key) && key != "_this"){
          keys.push(key);
         }
        }
        return keys;
    • summary
  • dojox.dtl.Context.extend

    • type
      Function
    • parameters:
      • obj: (typeof dojox.dtl.Context|Object)
    • source: [view]
        return dojo.delegate(this, obj);
    • summary
      Returns a clone of this context object, with the items from the
      passed objecct mixed in.
  • dojox.dtl.Context.filter

    • type
      Function
    • parameters:
      • filter: (typeof dojox.dtl.Context|Object|String)
    • source: [view]
        var context = new dojox.dtl.Context();
        var keys = [];
        var i, arg;
        if(filter instanceof dojox.dtl.Context){
         keys = filter.getKeys();
        }else if(typeof filter == "object"){
         for(var key in filter){
          keys.push(key);
         }
        }else{
         for(i = 0; arg = arguments[i]; i++){
          if(typeof arg == "string"){
           keys.push(arg);
          }
         }
        }


        for(i = 0, key; key = keys[i]; i++){
         context[key] = this[key];
        }


        return context;
    • summary
      Returns a clone of this context, only containing the items
      defined in the filter.
  • dojox.dtl.Context.setThis

    • type
      Function
    • parameters:
      • _this: (typeof Object)
    • source: [view]
        this._this = _this;
    • summary
  • dojox.dtl.Context.getThis

    • type
      Function
    • source: [view]
        return this._this;
    • summary
  • dojox.dtl.Context.hasKey

    • type
      Function
    • parameters:
      • key: (typeof )
    • source: [view]
        if(this._getter){
         var got = this._getter(key);
         if(typeof got != "undefined"){
          return true;
         }
        }


        if(typeof this[key] != "undefined"){
         return true;
        }


        return false;
    • summary
  • dojox.dtl

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary