lib/opal/jquery/element.rb in opal-jquery-0.4.1 vs lib/opal/jquery/element.rb in opal-jquery-0.4.2
- old
+ new
@@ -259,10 +259,15 @@
# @!method filter(selector)
# @param selector [String]
# @return [Element]
alias_native :filter
+ # @!method not(selector)
+ # @param selector [String]
+ # @return [Element]
+ alias_native :not
+
# @!method last
#
# Returns a new {Element} instance containing the last element in this
# current set.
#
@@ -697,10 +702,12 @@
return self.off(name, sel, block._jq_wrap);
}
}
end
- # returns an Array of Hashes
+ # Serializes a form into an Array of Hash objects.
+ #
+ # @return [Array<Hashes>]
def serialize_array
`self.serializeArray()`.map { |e| Hash.new(e) }
end
alias size length