Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kissy 1.4 中对老的组件的引用处理 #497

Closed
jayli opened this issue Oct 25, 2013 · 2 comments
Closed

kissy 1.4 中对老的组件的引用处理 #497

jayli opened this issue Oct 25, 2013 · 2 comments

Comments

@jayli
Copy link
Member

jayli commented Oct 25, 2013

老的代码(基于1.3.0)用了sizzle,种子文件换成1.4.0后,找不到sizzle文件

是否要作兼容,对于类似 sizzle、datalazyload、switchable、imagezoom、waterfall这些组件,作下alias?

@yiminghe
Copy link
Member

最好应用改下吧,不能老考虑兼容,要向前看,实在不行应用代码配置alias,kissy不加了,不然会造成疑惑

在 2013年10月25日星期五,lijing00333 写道:

老的代码(基于1.3.0)用了sizzle,种子文件换成1.4.0后,找不到sizzle文件

是否要作兼容,对于类似 sizzle、datalazyload、switchable、imagezoom、waterfall这些组件,作下alias?


Reply to this email directly or view it on GitHubhttps://github.com//issues/497
.

@jayli
Copy link
Member Author

jayli commented Oct 26, 2013

可以,给一个兼容的写法,加在升级文档中就可以

KISSY.config({
    modules: {
        'sizzle':{
            alias: ['node']
        },
        'ajax':{
            alias: ['io']
        },
        'calendar':{
            alias: ['gallery/calendar-deprecated/1.0/']
        },
        'datalazyload':{
            alias: ['gallery/datalazyload/1.0/']
        },
        'switchable':{
            alias: ['gallery/switchable/1.3.1/']
        },
        'imagezoom':{
            alias: ['gallery/imagezoom/1.0/']
        },
        'waterfall':{
            alias: ['gallery/waterfall/1.0/']
        },
        'flash':{
            alias: ['gallery/flash/1.0/']
        }
    }
});

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

No branches or pull requests

2 participants