Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

for jsonp load #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

for jsonp load #119

wants to merge 1 commit into from

Conversation

vflash
Copy link

@vflash vflash commented Nov 20, 2013

No description provided.

@vflash
Copy link
Author

vflash commented Nov 20, 2013

<script type="text/javascript" src="./tzdata.js?jsonp=tzdata">/*var tzdata = {...preparse...};*/</script>
<script type="text/javascript" src="./timezone-js/src/date.js"></script>

<script>
    timezoneJS.timezone.transport = function(o) {
        var data = o.url == 'tzdata' ? tzdata : '';
        if (o.async && typeof o.success == 'function') {
            o.success(data)
        };
        return data;
    };

    var _tz = timezoneJS.timezone;
    _tz.loadingScheme = _tz.loadingSchemes.MANUAL_LOAD;
    _tz.loadZoneJSONData('tzdata', true);
</script>

@longlho
Copy link
Collaborator

longlho commented Nov 20, 2013

We have a test suite, can you add it to our test suite?

@vflash
Copy link
Author

vflash commented Nov 20, 2013

not, I can not use Jake
~ https://gist.github.com/vflash/e75f00dcf2cb923b796d,

@PunkChameleon
Copy link
Contributor

This has been around for a while -- should it be closed if not merged?

@longlho
Copy link
Collaborator

longlho commented May 15, 2014

Hmm I haven't got time to write a test for it yet

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants