googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

TemplateBinding dependencies #164

Closed Starcounter-Jack closed 10 years ago

Starcounter-Jack commented 10 years ago

The Polymer website states:

Although internal in Polymer, it is also useful standalone.

The prollyfill appears to be dependent on Polymer as it references the Platform global.

Question

Can I use template binding given that I have native support for <template>, Object.observe and Mutation Observers? Or is the template binding currently entangled with Polymer? The separation appears to be there in concept, but I find it hard to find information on how to use it outside the scope of Polymer.

What are the exact dependencies?

rafaelw commented 10 years ago

Here are the dependencies:

TemplateBinding => NodeBind => observe-js.

TemplateBinding.js uses Platform.performMicrotaskCheckpoint() which is defined in observe.js