rocky 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rocky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rocky
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -9,6 +9,9 @@ class Middleware.Component.JsonForm extends Middleware.System.Base
9
9
  else
10
10
  @form = @container.find("form")
11
11
 
12
+ if @form.length == 0
13
+ return false
14
+
12
15
  @setCompletedStatusName()
13
16
 
14
17
  @form.on "ajax:success", @createResponse
@@ -12,5 +12,8 @@ class Middleware.System.Base
12
12
  @bindOne: (selector) ->
13
13
  new @($(selector))
14
14
 
15
+ reBind: =>
16
+ @.constructor(@.container)
17
+
15
18
  constructor: (@container) ->
16
19
  _.extend(@, Backbone.Events)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: