mootools-subtle-templates
mootools-subtle-templates copied to clipboard
Manager options: strip template instances or else!
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
- you don't WANT to unlink instances and
- it makes an infinite loop
so you have to do
var templates = options.templates; delete options.templates
and then
this.addTemplates(templates)
or whatever