Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var home = {
- myFunc: function() {
- }
- }
- $(function() {
- // Doing it this way means the data-* attributes on your elements will need global access to functions
- // in the "home" variable
- //kendo.init($("#myform"));
- // Doing this way means everything is internal to the closure
- var ds = new kendo.data.DataSource({
- // ...
- });
- $("#myform .grid).kendoGrid({
- dataSource: ds
- });
- });
- )();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement