rsence-pre 3.0.0.4 → 3.0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6df666ef3e2d735857512b63aa2fc04d1ada8850
4
- data.tar.gz: fd3ad1a68cad0ba219855d2103cb9befc7a5850b
3
+ metadata.gz: 704d65450d16a70de1c5bd816a2f7fa4c68d9bc6
4
+ data.tar.gz: 74fbb072f1270cf981514b96949078b88ff89f4e
5
5
  SHA512:
6
- metadata.gz: cf4190abefe05afc159985db95ab32cfdc23c4a259c961ecf1041beb3b4354042f828d60678673d5d0469f19f1891a9ff7d41ad1a903e72632bf15bc341aadef
7
- data.tar.gz: 91d70e5aeafe34cc3e9c9678e912241a689fc38c05527c6ff7125d0a1d85e75e72bfe36fa91587c5c7f95731df12e83ba210ad6ef3436df89d37983c665228ea
6
+ metadata.gz: 16727cb8b34689c452de3b57be2dd68b4b675fd480d95917a00aaf712d7ee4852afe8296f0a83354e24029e038f19f3f936d7b458cbc0b42210e451015ec6b56
7
+ data.tar.gz: 51dd8ea5057c58ff9469e5108a08a6a184852e60b3f599fd94ec84a3587da70a38a74e9e86c41eec28404ebb8f5c345d9ce3ea8cb083f09f2d266b4b85e1667b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.4.pre
1
+ 3.0.0.5.pre
@@ -1,14 +1,14 @@
1
1
  HSearchField = HTextControl.extend
2
2
  componentName: 'searchfield'
3
- markupElemNames: HTextControl.prototype.markupElemNames.concat( ['help'] )
3
+ markupElemNames: ['help'].concat( HTextControl.prototype.markupElemNames )
4
4
  controlDefaults: HTextControl.prototype.controlDefaults.extend
5
5
  helpText: 'Search...'
6
-
6
+
7
7
  textFocus: ->
8
+ @setStyleOfPart( 'help', 'visibility', 'hidden' )
8
9
  @base()
9
- @setStyleOfPart( 'help', 'display', 'none' )
10
-
10
+
11
11
  refreshValue: ->
12
- @base()
13
12
  if @typeChr( @value ) == 's' and @value.length > 0
14
- @setStyleOfPart( 'help', 'display', 'none' )
13
+ @setStyleOfPart( 'help', 'visibility', 'hidden' )
14
+ @base()
@@ -14,7 +14,7 @@
14
14
  white-space: nowrap;
15
15
  overflow: hidden;
16
16
  #{(
17
- (BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.opera)?
17
+ (BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.ie10||BROWSER_TYPE.opera)?
18
18
  'padding-left:2px;width:85% !important;height:90% !important;':
19
19
  'padding:2px;padding-top:4px;right:3px;height:22px;width:auto;'
20
20
  )}
@@ -32,7 +32,7 @@
32
32
  .default .searchfield_input_parent {
33
33
  position: absolute;
34
34
  #{(
35
- (BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.opera)?
35
+ (BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.ie10||BROWSER_TYPE.opera)?
36
36
  'left:0;padding-left:1px;top:0;right:4px;bottom:0;':
37
37
  'left:-2px;top:-2px;right:-2px;height:24px;'
38
38
  )}
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  .default .searchfield_e {
57
- right: 0px; top: 0px; width: 24px;
57
+ right: 0px; top: 0px; width: 24px;
58
58
  background-position: -24px 0px;
59
59
  }
60
60
 
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .default .searchfield_w {
68
- left: 0px; top: 0px; width: 24px;
68
+ left: 0px; top: 0px; width: 24px;
69
69
  background-position: 0px 0px;
70
70
  }
71
71
 
@@ -101,9 +101,8 @@
101
101
  background-position: 0px -48px;
102
102
  }
103
103
 
104
- .default .searchfield_help {
104
+ .default > .searchfield_help {
105
105
  position: absolute;
106
- display: block;
107
106
  left: 24px; top: 5px; right: 8px; height: 18px;
108
107
  color: #888;
109
108
  font-size: 12px;
@@ -4,8 +4,8 @@
4
4
  <div class="searchfield_help" id="help]I[" >#{this.options.helpText}</div>
5
5
  <div id="label]I[" title="#{this.label}" class="searchfield_input_parent">
6
6
  <input type="text" class="searchfield_input" #{this.enabled?'':'disabled'}
7
- onfocus="HSystem.views[#{this.viewId}].textFocus();"
8
- onblur="HSystem.views[#{this.viewId}].textBlur();"
7
+ onfocus="HSystem.views[#{this.viewId}].textFocus();"
8
+ onblur="HSystem.views[#{this.viewId}].textBlur();"
9
9
  id="value]I[" value="#{this.value}" />
10
10
  </div>
11
11
  <div class="searchfield_fade"></div>
@@ -1,7 +1,7 @@
1
1
  #### = Description
2
- ## HTextControl is a control unit that represents an editable input
3
- ## line of text. Commonly, textcontrol is used as a single text field in
4
- ## the request forms. HTextControl view or theme can be changed; the
2
+ ## HTextControl is a control unit that represents an editable input
3
+ ## line of text. Commonly, textcontrol is used as a single text field in
4
+ ## the request forms. HTextControl view or theme can be changed; the
5
5
  ## default_theme is used by default.
6
6
  ##
7
7
  ## = Instance variables
@@ -14,11 +14,12 @@ HTextControl = HControl.extend
14
14
 
15
15
  # allows text selection
16
16
  textSelectable: true
17
-
17
+
18
18
  defaultEvents:
19
19
  textEnter: true
20
+ click: true
20
21
  contextMenu: true
21
-
22
+
22
23
  controlDefaults: HControlDefaults.extend
23
24
  labelStyle:
24
25
  textIndent: 0
@@ -32,7 +33,7 @@ HTextControl = HControl.extend
32
33
 
33
34
  ## This flag is true, when the text input field has focus.
34
35
  hasTextFocus: false
35
-
36
+
36
37
  ### = Description
37
38
  ## The contextMenu event for text input components is not prevented by default.
38
39
  ###
@@ -62,29 +63,32 @@ HTextControl = HControl.extend
62
63
  @setStyleOfPart('value','textIndent',_labelWidth+'px')
63
64
  else
64
65
  @setStyleOfPart('label','left',_labelWidth+'px')
65
-
66
+
66
67
  drawSubviews: ->
67
68
  ELEM.setStyle(@elemId,'overflow','visible')
68
69
  @base()
69
70
  if @options.focusOnCreate
70
71
  @getInputElement().focus()
71
72
  @setSelectionRange( @value.length, @value.length ) if @typeChr(@value) == 's'
72
-
73
+
73
74
  lostActiveStatus: ->
74
75
  if @markupElemIds? && @markupElemIds.value?
75
76
  ELEM.get( @markupElemIds.value ).blur()
76
77
  @textBlur()
77
-
78
+
78
79
  setStyle: (_name, _value, _cacheOverride)->
79
80
  @base(_name, _value, _cacheOverride)
80
81
  return unless @markupElemIds? && @markupElemIds.value?
81
82
  @setStyleOfPart('value', _name, _value, _cacheOverride)
82
-
83
+
84
+ click: ->
85
+ @getInputElement().focus()
86
+
83
87
  setEnabled: (_flag)->
84
88
  @base(_flag)
85
89
  if @markupElemIds? and @markupElemIds.value?
86
90
  ELEM.get(@markupElemIds.value).disabled = !@enabled
87
-
91
+
88
92
  _clipboardEventTimer: null
89
93
  _getChangeEventFn: ->
90
94
  _this = @
@@ -97,12 +101,12 @@ HTextControl = HControl.extend
97
101
  _validatedValue = @validateText( @getTextFieldValue() )
98
102
  if @_changedFieldValue( _validatedValue, @value )
99
103
  @setValue( _validatedValue )
100
-
104
+
101
105
  clipboardEvent: ->
102
106
  @_updateValueFromField()
103
107
  clearTimeout( @_clipboardEventTimer )
104
108
  @_clipboardEventTimer = null
105
-
109
+
106
110
  _changeEventFn: null
107
111
  _clearChangeEventFn: ->
108
112
  if @_changeEventFn
@@ -115,7 +119,7 @@ HTextControl = HControl.extend
115
119
  @_changeEventFn = @_getChangeEventFn()
116
120
  Event.observe( ELEM.get(@markupElemIds.value), 'paste', @_changeEventFn )
117
121
  Event.observe( ELEM.get(@markupElemIds.value), 'cut', @_changeEventFn )
118
-
122
+
119
123
  ### = Description
120
124
  ## Special event for text entry components.
121
125
  ## Called when the input field gains focus.
@@ -138,10 +142,10 @@ HTextControl = HControl.extend
138
142
  @_updateValueFromField()
139
143
  @refreshValue()
140
144
  true
141
-
145
+
142
146
  idle: ->
143
147
  @refreshAfter() if @hasTextFocus and @options.refreshOnIdle and @options.refreshOnInput
144
-
148
+
145
149
  refreshValue: ->
146
150
  @setTextFieldValue( @value )
147
151
 
@@ -151,14 +155,14 @@ HTextControl = HControl.extend
151
155
  ###
152
156
  validateText: (_value)->
153
157
  @fieldToValue(_value)
154
-
158
+
155
159
  ### = Description
156
160
  ## Returns the input element or null, if no input element created (yet).
157
161
  ###
158
162
  getInputElement: ->
159
163
  return ELEM.get( @markupElemIds.value ) if @markupElemIds and @markupElemIds.value
160
164
  null
161
-
165
+
162
166
  ### = Description
163
167
  ## Returns the value of the input element.
164
168
  ###
@@ -168,7 +172,7 @@ HTextControl = HControl.extend
168
172
  return _inputElement.value
169
173
  else
170
174
  return ''
171
-
175
+
172
176
  valueToField: (_value)-> _value
173
177
  fieldToValue: (_value)-> _value
174
178
 
@@ -185,17 +189,17 @@ HTextControl = HControl.extend
185
189
  _value = @valueToField(_value)
186
190
  _inputElement.value = _value if _inputElement.value != _value.toString()
187
191
  @setSelectionRange( _selectionStart, _selectionEnd )
188
-
192
+
189
193
  # returns a random number prefixed and suffixed with '---'
190
194
  _randomMarker: -> '---'+Math.round((1+Math.random())*10000)+'---'
191
-
195
+
192
196
  die: ->
193
197
  @getInputElement().blur() if @hasTextFocus
194
198
  clearTimeout(@_refreshTimer) if @_refreshTimer
195
199
  @_refreshTimer = null
196
200
  @_clearChangeEventFn()
197
201
  @base()
198
-
202
+
199
203
  ### = Description
200
204
  ## Returns the selection (or text cursor position) of the input element
201
205
  ## as an +Array+ like +[ startOffset, endOffset ]+.
@@ -231,7 +235,7 @@ HTextControl = HControl.extend
231
235
  else
232
236
  _rangeArr = [ 0, 0 ]
233
237
  return _rangeArr
234
-
238
+
235
239
  _refreshTimer: null
236
240
  _lastFieldValue: null
237
241
  refreshAfter: ->
@@ -262,7 +266,7 @@ HTextControl = HControl.extend
262
266
  ## = Note
263
267
  ## - +_selectionStart+ can also be given as an +Array+
264
268
  ## like +[ startOffset, endOffset ]+.
265
- ## - If the +_selectionEnd+ is omitted, no selection is made; the text
269
+ ## - If the +_selectionEnd+ is omitted, no selection is made; the text
266
270
  ## cursor is positioned at the startOffset instead.
267
271
  ###
268
272
  setSelectionRange: ( _selectionStart, _selectionEnd )->
@@ -281,7 +285,7 @@ HTextControl = HControl.extend
281
285
  # Other browsers:
282
286
  else if _inputElement.selectionStart
283
287
  _inputElement.setSelectionRange( _selectionStart, _selectionEnd )
284
-
288
+
285
289
  ### = Description
286
290
  ## Receives the +textEnter+ event to update the value
287
291
  ## based on what's (potentially) entered in the text input field.
@@ -28,7 +28,7 @@ BROWSER_TYPE =
28
28
  The DOM Element abstraction engine
29
29
  ###
30
30
  ELEM = HClass.extend
31
-
31
+
32
32
  constructor: null
33
33
 
34
34
  ###
@@ -83,7 +83,7 @@ ELEM = HClass.extend
83
83
  @_nextElemId++
84
84
  @_elements[_id] = _elem
85
85
  _id
86
-
86
+
87
87
  ###
88
88
  Initializes cache object helpers
89
89
  ###
@@ -94,7 +94,7 @@ ELEM = HClass.extend
94
94
  @_attrCache[_id] = {}
95
95
  @_elemTodoH[_id] = false
96
96
  null
97
-
97
+
98
98
  ###
99
99
  Adds an existing document element by its id attribute
100
100
  ###
@@ -103,7 +103,7 @@ ELEM = HClass.extend
103
103
  _id = @_add( _elem )
104
104
  @_initCache( _id )
105
105
  _id
106
-
106
+
107
107
  ###
108
108
  Binds the document element
109
109
  ###
@@ -111,26 +111,26 @@ ELEM = HClass.extend
111
111
  _id = @_add( _elem )
112
112
  @_initCache( _id )
113
113
  _id
114
-
114
+
115
115
  ###
116
116
  Returns an element by its id
117
117
  ###
118
118
  get: (_id)->
119
119
  @_elements[_id]
120
-
120
+
121
121
  ###
122
122
  Sets the innerHTML contents of the element
123
123
  ###
124
124
  setHTML: (_id, _html)->
125
125
  @_elements[_id].innerHTML = _html unless @_elements[_id].innerHTML == _html
126
126
  null
127
-
127
+
128
128
  ###
129
129
  Returns the innerHTML of the element
130
130
  ###
131
131
  getHTML: (_id)->
132
132
  @_elements[_id].innerHTML
133
-
133
+
134
134
  ###
135
135
  Deletes an element and its associated metadata
136
136
  ###
@@ -144,28 +144,32 @@ ELEM = HClass.extend
144
144
  delete @_elemTodoH[_id]
145
145
  delete @_elements[_id]
146
146
  @_freeElemIds.push(_id)
147
- _elem.parentNode.removeChild( _elem )
147
+ _parent = _elem.parentNode
148
+ if _parent?
149
+ _parent.removeChild( _elem )
150
+ else if !@isProduction
151
+ console.warn( 'ELEM.del(',_id,'): Invalid parent: ', _parent, " for elem:",_elem )
148
152
  null
149
-
153
+
150
154
  ###
151
155
  Places the source element inside the target element
152
156
  ###
153
157
  append: (_srcId, _tgtId)->
154
158
  @_elements[_tgtId].appendChild @_elements[_srcId]
155
-
159
+
156
160
  ###
157
- Replaces all styles of an element with a block of css text
161
+ Replaces all styles of an element with a block of css text
158
162
  ###
159
163
  setCSS: (_id, _css)->
160
164
  @_elements[_id].style.cssText = _css
161
165
  null
162
-
166
+
163
167
  ###
164
168
  Returns the current css text of an element
165
169
  ###
166
170
  getCSS: (_id)->
167
171
  @_elements[_id].style.cssText
168
-
172
+
169
173
  ###
170
174
  Returns the visible size of an element as a [ width, height ] tuple
171
175
  ###
@@ -183,14 +187,14 @@ ELEM = HClass.extend
183
187
  break unless _parent.parentNode
184
188
  _parent = _parent.parentNode
185
189
  [ w, h ]
186
-
190
+
187
191
  ###
188
192
  Returns the full offset size of the element as a [ width, height ] tuple
189
193
  ###
190
194
  getSize: (_id)->
191
195
  _elem = @_elements[_id]
192
196
  [ _elem.offsetWidth, _elem.offsetHeight ]
193
-
197
+
194
198
  ###
195
199
  Returns the position of the element as a [ x, y ] tuple
196
200
  ###
@@ -211,7 +215,7 @@ ELEM = HClass.extend
211
215
  getScrollSize: (_id)->
212
216
  _elem = @_elements[_id]
213
217
  [ _elem.scrollWidth, _elem.scrollHeight ]
214
-
218
+
215
219
  ###
216
220
  Calculates the visible left position of an element
217
221
  ###
@@ -239,7 +243,7 @@ ELEM = HClass.extend
239
243
  ###
240
244
  getVisiblePosition: (_id)->
241
245
  [ @_getVisibleLeftPosition(_id), @_getVisibleTopPosition(_id) ]
242
-
246
+
243
247
  ###
244
248
  Returns the opacity on the element as a number equaling or between 0 and 1
245
249
  ###
@@ -247,7 +251,7 @@ ELEM = HClass.extend
247
251
  _elem = @_elements[_id]
248
252
  _opacity = @_getComputedStyle( _elem, 'opacity' )
249
253
  parseFloat( _opacity )
250
-
254
+
251
255
  ###
252
256
  Sets ActiveX alpha filter for IE6-8
253
257
  ###
@@ -268,13 +272,13 @@ ELEM = HClass.extend
268
272
  else
269
273
  @_elements[_id].style.setProperty('opacity', _opacity.toString(), '')
270
274
  null
271
-
275
+
272
276
  ###
273
277
  Wrapper for getStyle, returns an integer number instead of a string
274
278
  ###
275
279
  getIntStyle: (_id, _key)->
276
280
  parseInt( @getStyle(_id, _key), 10 )
277
-
281
+
278
282
  ###
279
283
  Sets element position ( id, [ x, y ] )
280
284
  ###
@@ -313,7 +317,7 @@ ELEM = HClass.extend
313
317
  @setStyle( _id, 'width', w+'px' )
314
318
  @setStyle( _id, 'height', h+'px' )
315
319
  null
316
-
320
+
317
321
  ###
318
322
  Gets box coordinates [ x, y, width, height )
319
323
  ###
@@ -321,7 +325,7 @@ ELEM = HClass.extend
321
325
  [ x, y ] = @getPosition( _id )
322
326
  [ w, h ] = @getSize( _id )
323
327
  [ x, y, w, h ]
324
-
328
+
325
329
  ###
326
330
  Computes extra size (padding and border size) of element
327
331
  ###
@@ -333,7 +337,7 @@ ELEM = HClass.extend
333
337
  ###
334
338
  _getExtraLeftWidth: (_id)->
335
339
  @_getExtraSize( _id, 'left' )
336
-
340
+
337
341
  ###
338
342
  Returns right-side padding and border size
339
343
  ###
@@ -345,25 +349,25 @@ ELEM = HClass.extend
345
349
  ###
346
350
  _getExtraTopWidth: (_id)->
347
351
  @_getExtraSize( _id, 'top' )
348
-
352
+
349
353
  ###
350
354
  Returns right-side padding and border size
351
355
  ###
352
356
  _getExtraBottomWidth: (_id)->
353
357
  @_getExtraSize( _id, 'bottom' )
354
-
358
+
355
359
  ###
356
360
  Returns extra width of element (caused by padding and borders)
357
361
  ###
358
362
  getExtraWidth: (_id)->
359
363
  @_getExtraSize( _id, 'left' ) + @_getExtraSize( _id, 'right' )
360
-
364
+
361
365
  ###
362
366
  Returns extra height of element (caused by padding and borders)
363
367
  ###
364
368
  getExtraHeight: (_id)->
365
369
  @_getExtraSize( _id, 'top' ) + @_getExtraSize( _id, 'bottom' )
366
-
370
+
367
371
  ###
368
372
  Sets delay between refreshes based on the target frame rate
369
373
  ###
@@ -371,7 +375,7 @@ ELEM = HClass.extend
371
375
  @_minDelay = 1000/_fps
372
376
  @_minDelay = @ELEMTickerInterval if @_minDelay < @ELEMTickerInterval
373
377
  null
374
-
378
+
375
379
  ###
376
380
  Sets slowness (weighted additional multiplier for slow browsers; frame-skip)
377
381
  The d-efault 1.0 does not change the FPS, larger numbers gives more time for logic by skipping frames
@@ -379,7 +383,7 @@ ELEM = HClass.extend
379
383
  setSlowness: (_slow)->
380
384
  @_slowness = _slow
381
385
  null
382
-
386
+
383
387
  ###
384
388
  Sets the idle delay in ms
385
389
  This is the maximum time between setting a style or property into the buffer and flushing the buffer to the DOM
@@ -397,7 +401,7 @@ ELEM = HClass.extend
397
401
  ELEM.flushLoop( _delay )
398
402
  , _timeDelay )
399
403
  null
400
-
404
+
401
405
  ###
402
406
  Computes a default delay time based on various params
403
407
  ###
@@ -426,11 +430,11 @@ ELEM = HClass.extend
426
430
  @_performFlush()
427
431
  @_flushing = false
428
432
  null
429
-
433
+
430
434
  # Alias for flushLoop
431
435
  flush: ->
432
436
  @flushLoop()
433
-
437
+
434
438
  ###
435
439
  Performs the flush of flushLoop
436
440
  ###
@@ -453,7 +457,7 @@ ELEM = HClass.extend
453
457
  @_flushTime += new Date().getTime()
454
458
  @_needFlush = @_elemTodo.length != 0 # unless @_needFlush
455
459
  null
456
-
460
+
457
461
  ###
458
462
  Flushes the attribute cache
459
463
  ###
@@ -469,7 +473,7 @@ ELEM = HClass.extend
469
473
  _val = _attrCache[_key]
470
474
  _elem[_key] = _val
471
475
  null
472
-
476
+
473
477
  ###
474
478
  Gets an element attribute directly from the element
475
479
  ###
@@ -490,7 +494,7 @@ ELEM = HClass.extend
490
494
  _val = @_getAttrDirect( _id, _key )
491
495
  @_attrCache[_id][_key] = _val
492
496
  _val
493
-
497
+
494
498
  ###
495
499
  Sets a named element attribute into the cache and buffer or selectively direct
496
500
  ###
@@ -509,7 +513,7 @@ ELEM = HClass.extend
509
513
  @_elemTodoH[ _id ] = true
510
514
  @_checkNeedFlush()
511
515
  true
512
-
516
+
513
517
  ###
514
518
  Deletes a named element attribute
515
519
  ###
@@ -531,7 +535,7 @@ ELEM = HClass.extend
531
535
  return null unless @_elements[_id]? # item is deleted
532
536
  _classNames = @_elements[_id].className.split(' ')
533
537
  return !!~_classNames.indexOf( _className )
534
-
538
+
535
539
  ###
536
540
  Adds a named CSS className to the element
537
541
  ###
@@ -547,7 +551,7 @@ ELEM = HClass.extend
547
551
  _elem.className = _classNames.join(' ')
548
552
  @_attrCache[_id]['className'] = _elem.className
549
553
  null
550
-
554
+
551
555
  ###
552
556
  Removes a named CSS className of the element
553
557
  ###
@@ -575,14 +579,14 @@ ELEM = HClass.extend
575
579
  clearTimeout( @_timer)
576
580
  @_resetFlushLoop( @_minDelay )
577
581
  null
578
-
582
+
579
583
  ###
580
584
  Low-level style property setter
581
585
  ###
582
586
  _setElementStyle: (_elem, _key, _value)->
583
587
  _elem.style.setProperty( _key, _value, '' )
584
588
  null
585
-
589
+
586
590
  ###
587
591
  Camelizes string (mostly used for IE attribute name conversions)
588
592
  ###
@@ -590,7 +594,7 @@ ELEM = HClass.extend
590
594
  _str.replace( /((-)([a-z])(\w))/g, ($0, $1, $2, $3, $4)->
591
595
  $3.toUpperCase()+$4
592
596
  )
593
-
597
+
594
598
  ###
595
599
  Decamelizes string (used for js property to css property conversion)
596
600
  ###
@@ -598,7 +602,7 @@ ELEM = HClass.extend
598
602
  _str.replace( /(([A-Z])(\w))/g, ($0, $1, $2, $3)->
599
603
  '-'+$2.toLowerCase()+$3
600
604
  )
601
-
605
+
602
606
  ###
603
607
  IE version of _setElementStyle
604
608
  ###
@@ -640,7 +644,7 @@ ELEM = HClass.extend
640
644
  @_elemTodoH[_id] = true
641
645
  @_checkNeedFlush()
642
646
  null
643
-
647
+
644
648
  ###
645
649
  Sets multiple styles at once
646
650
  ###
@@ -652,7 +656,7 @@ ELEM = HClass.extend
652
656
  for _key, _value of _styles
653
657
  @setStyle( _id, _key, _value, _noCache )
654
658
  null
655
-
659
+
656
660
  ###
657
661
  Creates a new element inside another element
658
662
  ###
@@ -687,13 +691,13 @@ ELEM = HClass.extend
687
691
  _docElem = document.documentElement
688
692
  _size = [ _docElem.clientWidth, _docElem.clientHeight ]
689
693
  _size
690
-
694
+
691
695
  ###
692
696
  Returns computed style of element
693
697
  ###
694
698
  _getComputedStyle: (_elem, _key)->
695
699
  document.defaultView.getComputedStyle( _elem, null ).getPropertyValue( _key )
696
-
700
+
697
701
  ###
698
702
  IE version of _getComputedStyle
699
703
  ###
@@ -742,7 +746,7 @@ ELEM = HClass.extend
742
746
  console.log( 'invalid style key:',_elem, _key, _cached) unless _key
743
747
  @_setElementStyle( _elem, _key, _cached[_key] )
744
748
  null
745
-
749
+
746
750
  ###
747
751
  Final phase of startup, when document is loaded
748
752
  ###
@@ -755,7 +759,7 @@ ELEM = HClass.extend
755
759
  @_flushDomLoadQueue() until @_initDone
756
760
  @_resetFlushLoop( @_minDelay )
757
761
  null
758
-
762
+
759
763
  ###
760
764
  Runs a cmd
761
765
  ###
@@ -885,7 +889,7 @@ ELEM = HClass.extend
885
889
  _browserType.ipad = _iPad
886
890
  @_domWaiter()
887
891
  null
888
-
892
+
889
893
  ###
890
894
  Adds tasks to run when the document load check is completed
891
895
  ###
@@ -920,7 +924,7 @@ ELEM = HClass.extend
920
924
  ELEM._domLoadStatus = true
921
925
  else if document.body
922
926
  ELEM._domLoadStatus = true
923
-
927
+
924
928
  if ELEM._domLoadStatus
925
929
  clearTimeout( @_domLoadTimer )
926
930
  @_init()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.4
4
+ version: 3.0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riassence Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-20 00:00:00.000000000 Z
12
+ date: 2013-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rsence-deps