mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 01:39:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4968 201d5d3c-b55e-5fd7-737f-ddc643e51545
18 lines
No EOL
426 B
JavaScript
18 lines
No EOL
426 B
JavaScript
/**
|
|
* Creates and returns instance of browser specific implementation.
|
|
*
|
|
* @requires Xquared.js
|
|
* @requires rdom/Base.js
|
|
* @requires rdom/Trident.js
|
|
* @requires rdom/Gecko.js
|
|
* @requires rdom/Webkit.js
|
|
*/
|
|
xq.rdom.Base.createInstance = function() {
|
|
if(xq.Browser.isTrident) {
|
|
return new xq.rdom.Trident();
|
|
} else if(xq.Browser.isWebkit) {
|
|
return new xq.rdom.Webkit();
|
|
} else {
|
|
return new xq.rdom.Gecko();
|
|
}
|
|
} |