projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d68dc5065455dfa5f0433b8c835c74322907a1d9
[platform/framework/web/crosswalk-tizen.git]
/
1
2
3
function F(){}
4
5
/**
6
* Do fn.apply on a constructor.
7
*/
8
function ctorApply(ctor, args) {
9
F.prototype = ctor.prototype;
10
var instance = new F();
11
ctor.apply(instance, args);
12
return instance;
13
}
14
15
module.exports = ctorApply;
16
17