quick_script 0.5.7 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.9"
3
3
  end
@@ -32,7 +32,7 @@ class @SelectOpts
32
32
  return this
33
33
  find : (val)=>
34
34
  for obj in @options
35
- return obj.str if obj.val == val.toString()
35
+ return obj.str if (obj.val == val.toString())
36
36
  return ""
37
37
 
38
38
  ## PAGETIMER
@@ -50,6 +50,17 @@
50
50
  height: opts[2],
51
51
  display: 'inline-block'
52
52
 
53
+ ko.bindingHandlers.checkedInt =
54
+ init: (element, valueAccessor, allBindingsAccessor) ->
55
+ observable = valueAccessor()
56
+ interceptor = ko.computed
57
+ read: ->
58
+ return observable().toString()
59
+ write: (newValue) ->
60
+ observable(+newValue)
61
+ owner: this
62
+ ko.applyBindingsToNode(element, { checked: interceptor })
63
+
53
64
  ko.bindingHandlers.tinymce =
54
65
  init : (element, valueAccessor, bindingsAccessor, viewModel) ->
55
66
  options = {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_script
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 9
10
+ version: 0.5.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alan Graham
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-14 00:00:00 Z
18
+ date: 2012-06-15 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Framework for single-page web applications