mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Fix GradientStop.readAll() call that was omitted in the recent function signature change.
This commit is contained in:
parent
a4bfa981f4
commit
db1d87b843
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ var Gradient = Base.extend(/** @lends Gradient# */{
|
|||
if (stops.length < 2)
|
||||
throw new Error(
|
||||
'Gradient stop list needs to contain at least two stops.');
|
||||
this._stops = GradientStop.readAll(stops, 0, false, true); // clone
|
||||
this._stops = GradientStop.readAll(stops, 0, { clone: true });
|
||||
// Now reassign ramp points if they were not specified.
|
||||
for (var i = 0, l = this._stops.length; i < l; i++) {
|
||||
var stop = this._stops[i];
|
||||
|
|
Loading…
Reference in a new issue