atticoos / angular-translate-once

:currency_exchange: Extension of angular-translate for one time bindings
53 stars 11 forks source link

How to use, phantomjs TypeError undefined is not a function bind? #7

Closed dabbank closed 8 years ago

dabbank commented 8 years ago

Hi,

in application is it running fine: just loading once.js file ( no angular.module registration)

but when running with phantomas I got issues: ["TypeError: 'undefined' is not a function (evaluating 'TranslateOnceAttributeDirective.bind(undefined, attribute)') - unknown

atticoos commented 8 years ago

Thanks for reporting! This has also been brought to attention in #4.

Right now this will require a polyfill for bind.

The goal is to remove the usage of .bind in this project

runderworld commented 8 years ago

I guess this can be closed for good! (though #4 was already solved with the polyfill previously)

https://github.com/ajwhite/angular-translate-once/commit/81e0bdb68db8fd8b354b520144a9c5d5db9ad361

atticoos commented 8 years ago

Great stuff @runderworld :clap:

I'll release the new version this week :smiley:

atticoos commented 8 years ago

v1.0.3 has been released with the changes :+1: