-
-
Save banderson/282413 to your computer and use it in GitHub Desktop.
Revisions
-
nathansmith revised this gist
Jan 12, 2010 . 1 changed file with 2 additions and 2 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 @@ -11,8 +11,8 @@ jQuery(document).ready(function() { // var APP = (function($) { // For use only inside APP. var private_var_one = 'foo'; var private_var_two = 'bar'; // Expose contents of APP. return { -
nathansmith revised this gist
Jan 11, 2010 . 1 changed file with 2 additions and 2 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 @@ -36,11 +36,11 @@ var APP = (function($) { misc: { call_specifically_one: function() { // Must be called individually, via:. // APP.misc.call_specifically_one(); }, call_specifically_two: function() { // Must be called individually, via:. // APP.misc.call_specifically_two(); } } }; -
nathansmith revised this gist
Jan 11, 2010 . 1 changed file with 8 additions and 2 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 @@ -24,17 +24,23 @@ var APP = (function($) { init: { call_automatically_one: function() { // Called on page-load. // Can still be called individually, via: // APP.init.call_automatically_one(); }, call_automatically_two: function() { // Called on page-load. // Can still be called individually, via: // APP.init.call_automatically_two(); } }, misc: { call_specifically_one: function() { // Must be called individually, via:. // APP.init.call_specifically_one(); }, call_specifically_two: function() { // Must be called individually, via:. // APP.init.call_specifically_two(); } } }; -
nathansmith revised this gist
Jan 11, 2010 . 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 @@ -6,7 +6,8 @@ jQuery(document).ready(function() { }); // // Module pattern: // http://yuiblog.com/blog/2007/06/12/module-pattern/ // var APP = (function($) { // For use only inside APP. -
nathansmith revised this gist
Jan 11, 2010 . 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 @@ -9,9 +9,11 @@ jQuery(document).ready(function() { // Module pattern. // var APP = (function($) { // For use only inside APP. var private_var_1 = 'foo'; var private_var_2 = 'bar'; // Expose contents of APP. return { go: function() { for (var i in APP.init) { @@ -35,4 +37,5 @@ var APP = (function($) { } } }; // Pass in jQuery ref. })(jQuery); -
nathansmith revised this gist
Jan 11, 2010 . 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 @@ -1,3 +1,6 @@ // // Automatically calls all functions in APP.init // jQuery(document).ready(function() { APP.go(); }); -
nathansmith revised this gist
Jan 11, 2010 . 1 changed file with 12 additions and 4 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 @@ -16,11 +16,19 @@ var APP = (function($) { } }, init: { call_automatically_one: function() { // Called on page-load. }, call_automatically_two: function() { // Called on page-load. } }, misc: { call_specifically_one: function() { // Must be called individually. }, call_specifically_two: function() { // Must be called individually. } } }; -
nathansmith revised this gist
Jan 11, 2010 . 1 changed file with 2 additions and 2 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 @@ -11,8 +11,8 @@ var APP = (function($) { return { go: function() { for (var i in APP.init) { APP.init[i](); } }, init: { -
nathansmith revised this gist
Jan 11, 2010 . 1 changed file with 0 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 @@ -2,7 +2,6 @@ jQuery(document).ready(function() { APP.go(); }); // // Module pattern. // -
nathansmith created this gist
Jan 11, 2010 .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,28 @@ jQuery(document).ready(function() { APP.go(); }); // // Module pattern. // var APP = (function($) { var private_var_1 = 'foo'; var private_var_2 = 'bar'; return { go: function() { for (var i in INF.init) { INF.init[i](); } }, init: { zebra: function() { // Zebra stripe tables. }, check_all: function() { // Check-all checkbox. } } }; })(jQuery);