|
25 | 25 |
|
26 | 26 | FlipClock.Factory = FlipClock.Base.extend({ |
27 | 27 |
|
| 28 | + /** |
| 29 | + * The clock's animation rate. |
| 30 | + * |
| 31 | + * Note, currently this property doesn't do anything. |
| 32 | + * This property is here to be used in the future to |
| 33 | + * programmaticaly set the clock's animation speed |
| 34 | + */ |
| 35 | + |
| 36 | + animationRate: 1000, |
| 37 | + |
28 | 38 | /** |
29 | 39 | * Auto start the clock on page load (True|False) |
30 | 40 | */ |
|
86 | 96 | defaultLanguage: 'english', |
87 | 97 |
|
88 | 98 | /** |
89 | | - * The language being used to display labels (string) |
| 99 | + * The jQuery object |
| 100 | + */ |
| 101 | + |
| 102 | + $el: false, |
| 103 | + |
| 104 | + /** |
| 105 | + * The FlipClock.Face object |
90 | 106 | */ |
91 | 107 |
|
92 | | - language: 'english', |
| 108 | + face: true, |
93 | 109 |
|
94 | 110 | /** |
95 | 111 | * The language object after it has been loaded |
96 | 112 | */ |
97 | 113 |
|
98 | 114 | lang: false, |
99 | 115 |
|
| 116 | + /** |
| 117 | + * The language being used to display labels (string) |
| 118 | + */ |
| 119 | + |
| 120 | + language: 'english', |
| 121 | + |
| 122 | + /** |
| 123 | + * The minimum digits the clock must have |
| 124 | + */ |
| 125 | + |
| 126 | + minimumDigits: 0, |
| 127 | + |
100 | 128 | /** |
101 | 129 | * The original starting value of the clock. Used for the reset method. |
102 | 130 | */ |
103 | 131 |
|
104 | 132 | original: false, |
105 | 133 |
|
106 | | - /** |
107 | | - * The FlipClock.Face object |
108 | | - */ |
109 | | - |
110 | | - face: true, |
111 | | - |
112 | 134 | /** |
113 | 135 | * Is the clock running? (True|False) |
114 | 136 | */ |
|
127 | 149 |
|
128 | 150 | timer: false, |
129 | 151 |
|
130 | | - /** |
131 | | - * An array of FlipClock.List objects |
132 | | - */ |
133 | | - |
134 | | - lists: [], |
135 | | - |
136 | | - /** |
137 | | - * The jQuery object |
138 | | - */ |
139 | | - |
140 | | - $el: false, |
141 | | - |
142 | 152 | /** |
143 | 153 | * The jQuery object (depcrecated) |
144 | 154 | */ |
|
171 | 181 | this.original = (digit instanceof Date) ? digit : (digit ? Math.round(digit) : 0); |
172 | 182 |
|
173 | 183 | this.time = new FlipClock.Time(this, this.original, { |
174 | | - minimumDigits: options.minimumDigits ? options.minimumDigits : 0, |
175 | | - animationRate: options.animationRate ? options.animationRate : 1000 |
| 184 | + minimumDigits: this.minimumDigits, |
| 185 | + animationRate: this.animationRate |
176 | 186 | }); |
177 | 187 |
|
178 | 188 | this.timer = new FlipClock.Timer(this, options); |
|
184 | 194 | if(this.autoStart) { |
185 | 195 | this.start(); |
186 | 196 | } |
| 197 | + |
187 | 198 | }, |
188 | 199 |
|
189 | 200 | /** |
|
0 commit comments