mootools-subtle-templates icon indicating copy to clipboard operation
mootools-subtle-templates copied to clipboard

Manager options: strip template instances or else!

Open subtleGradient opened this issue 16 years ago • 0 comments

the options allow you to pass in instances of subtletemplate in the templates object there's a bug there; you must remove that object before you call parent and send it through setOptions options can't contain instances of classes

  1. you don't WANT to unlink instances and
  2. it makes an infinite loop

so you have to do var templates = options.templates; delete options.templates and then this.addTemplates(templates) or whatever

subtleGradient avatar Oct 13 '09 21:10 subtleGradient