Created
October 31, 2011 17:20
-
-
Save kwhinnery/1328057 to your computer and use it in GitHub Desktop.
Revisions
-
kwhinnery revised this gist
Oct 31, 2011 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ //CommonJS style var mod = require('browser.ti.module'); mod.sayHello('Kevin'); -
kwhinnery revised this gist
Oct 31, 2011 . 2 changed files with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ //Ti.include style Ti.include('browser.ti.module.js'); globalNamespace.sayHello('Kevin'); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <html> <head> <script src="browser.ti.module.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> //browser style globalNamespace.sayHello('Kevin'); </script> </head> </html> -
kwhinnery revised this gist
Oct 31, 2011 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ //This variable will be the public interface //of the module in a script tag or Ti.include var globalNamespace = {}; (function (exports) { exports.sayHello = function(str) { -
kwhinnery created this gist
Oct 31, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ //This variable will be the public interface of the module in a script tag or Ti.include var globalNamespace = {}; (function (exports) { exports.sayHello = function(str) { alert('Hello '+str+'!'); }; }(typeof exports === 'object' && exports || globalNamespace));