Skip to content

Commit

Permalink
Merge pull request #702 from cb1kenobi/timob-5859
Browse files Browse the repository at this point in the history
[TIMOB-5859] Adding support for require().
  • Loading branch information
donthorp committed Nov 16, 2011
2 parents 5ae888a + e3224dd commit 6f392cd
Show file tree
Hide file tree
Showing 3 changed files with 1,001 additions and 2 deletions.
8 changes: 8 additions & 0 deletions mobileweb/src/Ti/ti.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
};

api.include = function(files){
/* coming soon!
var i = 0;
typeof files === "array" || (files = [].concat(Array.prototype.slice.call(arguments, 0)));
for (; i < files.length; i++) {
require("include!" + files[i]);
}
*/

var head = document.getElementsByTagName('head')[0];
if(head == null){
head = document;
Expand Down

0 comments on commit 6f392cd

Please sign in to comment.