Fixed definitions/tests for 'jquery.gridster'.

This commit is contained in:
Daniel Rosenwasser
2015-08-21 15:06:42 -07:00
parent 85cafebc41
commit ef1525d01e
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ var options: GridsterOptions = {
}
};
var gridster = <Gridster>$('.gridster ul').gridster(options).data('grister');
let gridster: Gridster = $('.gridster ul').gridster(options).data('gridster');
gridster.add_widget('<li class="new">The HTML of the widget...</li>', 2, 1);
gridster.remove_widget($('gridster li').eq(3).get(0));
var json = gridster.serialize<SerializeData>();
+4
View File
@@ -248,3 +248,7 @@ interface Gridster {
**/
disable(): Gridster;
}
interface JQuery {
data(key: "gridster"): Gridster;
}