Add ability to specify pattern repeat via options

This commit is contained in:
kangax 2013-02-04 17:30:36 +01:00
parent 72fb3e8d32
commit d645c4e7dc
2 changed files with 6 additions and 0 deletions

3
dist/all.js vendored
View file

@ -4646,6 +4646,9 @@ fabric.Pattern = fabric.util.createClass(/** @scope fabric.Pattern.prototype */
? new Function(options.source)
: options.source;
}
if (options.repeat) {
this.repeat = options.repeat;
}
},
/**

View file

@ -21,6 +21,9 @@ fabric.Pattern = fabric.util.createClass(/** @scope fabric.Pattern.prototype */
? new Function(options.source)
: options.source;
}
if (options.repeat) {
this.repeat = options.repeat;
}
},
/**