]> git.wh0rd.org - tt-rss.git/blobdiff - lib/dijit/form/HorizontalRule.js
update dojo to 1.7.3
[tt-rss.git] / lib / dijit / form / HorizontalRule.js
index e81805e6e27602843b89f982ad737c0e7c7b1f13..85c5472afda495a9e95ac1ec67128dfc21b0763e 100644 (file)
@@ -1,74 +1,2 @@
-/*
-       Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
-       Available via Academic Free License >= 2.1 OR the modified BSD license.
-       see: http://dojotoolkit.org/license for details
-*/
-
-
-if(!dojo._hasResource["dijit.form.HorizontalRule"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dijit.form.HorizontalRule"] = true;
-dojo.provide("dijit.form.HorizontalRule");
-dojo.require("dijit._Widget");
-dojo.require("dijit._Templated");
-
-
-dojo.declare("dijit.form.HorizontalRule", [dijit._Widget, dijit._Templated],
-{
-       // summary:
-       //              Hash marks for `dijit.form.HorizontalSlider`
-
-       templateString: '<div class="dijitRuleContainer dijitRuleContainerH"></div>',
-
-       // count: Integer
-       //              Number of hash marks to generate
-       count: 3,
-
-       // container: String
-       //              For HorizontalSlider, this is either "topDecoration" or "bottomDecoration",
-       //              and indicates whether this rule goes above or below the slider.
-       container: "containerNode",
-
-       // ruleStyle: String
-       //              CSS style to apply to individual hash marks
-       ruleStyle: "",
-
-       _positionPrefix: '<div class="dijitRuleMark dijitRuleMarkH" style="left:',
-       _positionSuffix: '%;',
-       _suffix: '"></div>',
-
-       _genHTML: function(pos, ndx){
-               return this._positionPrefix + pos + this._positionSuffix + this.ruleStyle + this._suffix;
-       },
-
-       // _isHorizontal: [protected extension] Boolean
-       //              VerticalRule will override this...
-       _isHorizontal: true,
-
-       buildRendering: function(){
-               this.inherited(arguments);
-
-               var innerHTML;
-               if(this.count == 1){
-                       innerHTML = this._genHTML(50, 0);
-               }else{
-                       var i;
-                       var interval = 100 / (this.count-1);
-                       if(!this._isHorizontal || this.isLeftToRight()){
-                               innerHTML = this._genHTML(0, 0);
-                               for(i=1; i < this.count-1; i++){
-                                       innerHTML += this._genHTML(interval*i, i);
-                               }
-                               innerHTML += this._genHTML(100, this.count-1);
-                       }else{
-                               innerHTML = this._genHTML(100, 0);
-                               for(i=1; i < this.count-1; i++){
-                                       innerHTML += this._genHTML(100-interval*i, i);
-                               }
-                               innerHTML += this._genHTML(0, this.count-1);
-                       }
-               }
-               this.domNode.innerHTML = innerHTML;
-       }
-});
-
-}
+//>>built
+define("dijit/form/HorizontalRule",["dojo/_base/declare","../_Widget","../_TemplatedMixin"],function(_1,_2,_3){return _1("dijit.form.HorizontalRule",[_2,_3],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(_4){return this._positionPrefix+_4+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,buildRendering:function(){this.inherited(arguments);var _5;if(this.count==1){_5=this._genHTML(50,0);}else{var i;var _6=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_5=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_5+=this._genHTML(_6*i,i);}_5+=this._genHTML(100,this.count-1);}else{_5=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_5+=this._genHTML(100-_6*i,i);}_5+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_5;}});});
\ No newline at end of file