Created
October 24, 2009 03:05
-
-
Save hafriedlander/217337 to your computer and use it in GitHub Desktop.
Potential private function syntax for concrete
This file contains 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 characters
$.concrete('namespace', function($){ | |
$('.selector').concrete({ | |
foo: $.concrete.internal(function(){ | |
}), | |
bar: function(){ | |
this.foo(); // Allowed | |
} | |
}) | |
}); | |
$('.selector').concrete('namespace').foo(); // Denied - actually "method not found" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment