Permalink
Browse files

Missing wrap() in the Array.of extension.

  • Loading branch information...
molnarg committed Aug 19, 2012
1 parent d108713 commit 09fb9440db83c529fc01e10b7e9028af6cf08439
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/extensions/Array.js
View
@@ -60,7 +60,7 @@ Array.of = function() {
// (minLength, maxLength, schema)
var args = Array.prototype.slice.call(arguments).reverse()
if (args.length === 2) args[2] = args[1]
- return new ArraySchema(Schema.fromJS(args[0]), args[1], args[2])
+ return new ArraySchema(Schema.fromJS(args[0]), args[1], args[2]).wrap()
}
Array.like = function(other) {

0 comments on commit 09fb944

Please sign in to comment.