You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class gets wrongly misidentified as a method in o.context.type, thus ending up with a prefix . in the heading.
'use strict'var_=require('lodash')varclone=require('udc')varxtend=require('xtend')/** * Gives birth to instances * * ```js * var History = require('object-history') * var initial = {foo: 'bar', name: 'victoria'} * var history = new History(initial) * ``` * * @class History * @param {Object} `initial` The initial history point * @param {Object} `options` `limit`: `{Number}` Remember this many backward points * @constructor * @api public */module.exports=function(initial,options){varself=thisself.options=xtend({limit: null},options)self.notObjError=newError('requires a plain object')if(!initial||!_.isPlainObject(initial)){throwself.notObjError}self.current=clone(initial)self.changesets={backward: [],forward: []}}varproto=module.exports.prototypeproto.add=require('./prototype/add')proto.get=require('./prototype/get')proto.lengthBackward=require('./prototype/length-backward')proto.lengthForward=require('./prototype/length-forward')proto.backward=require('./prototype/backward')proto.forward=require('./prototype/forward')proto.move=require('./prototype/move')proto.forgetAllInDirection=require('./prototype/forget-all-in-direction')proto.forgetAllBackward=require('./prototype/forget-all-backward')proto.forgetAllForward=require('./prototype/forget-all-forward')
The text was updated successfully, but these errors were encountered:
This class gets wrongly misidentified as a method in
o.context.type
, thus ending up with a prefix.
in the heading.The text was updated successfully, but these errors were encountered: