1
0
Fork 0

chore(core): Made raise non-iterable

This commit is contained in:
Joost De Cock 2020-07-23 10:26:04 +02:00
parent ffd7ecda59
commit 75f0e97c05
4 changed files with 15 additions and 21 deletions

View file

@ -12,18 +12,17 @@ import {
} from './utils'
function Path(debug = false) {
this.debug = debug
this.render = true
this.topLeft = false
this.bottomRight = false
this.attributes = new Attributes()
this.ops = []
Object.defineProperty(this, 'debug', { value: debug })
}
/** Adds the raise method for a path not created through the proxy **/
Path.prototype.withRaise = function (raise = false) {
if (raise) this.raise = raise
else this.raise = () => null
if (raise) Object.defineProperty(this, 'raise', { value: raise })
return this
}