@@ -62,54 +62,15 @@ new Vue({
62
62
responsive : true ,
63
63
index : 0
64
64
} ,
65
- /*
66
65
mounted : function ( ) {
67
- this.index = this.layout.length;
66
+ // this.index = this.layout.length;
68
67
} ,
69
68
methods : {
70
- increaseWidth: function(item) {
71
- var width = document.getElementById("content").offsetWidth;
72
- width += 20;
73
- document.getElementById("content").style.width = width+"px";
74
- },
75
- decreaseWidth: function(item) {
76
-
77
- var width = document.getElementById("content").offsetWidth;
78
- width -= 20;
79
- document.getElementById("content").style.width = width+"px";
80
- },
81
- removeItem: function(item) {
82
- //console.log("### REMOVE " + item.i);
83
- this.layout.splice(this.layout.indexOf(item), 1);
84
- },
85
- addItem: function() {
86
- var self = this;
87
- //console.log("### LENGTH: " + this.layout.length);
88
- var item = {"x":0,"y":0,"w":2,"h":2,"i":this.index+"", whatever: "bbb"};
89
- this.index++;
90
- this.layout.push(item);
91
- },
92
69
breakpointChangedEvent : function ( newBreakpoint , newLayout ) {
93
70
console . log ( "BREAKPOINT CHANGED breakpoint=" , newBreakpoint , ", layout: " , newLayout ) ;
94
71
}
95
72
}
96
- */
97
73
} ) ;
98
74
99
- /*
100
- function generateLayout() {
101
- return _.map(_.range(0, 25), function (item, i) {
102
- var y = Math.ceil(Math.random() * 4) + 1;
103
- return {
104
- x: _.random(0, 5) * 2 % 12,
105
- y: Math.floor(i / 6) * y,
106
- w: 2,
107
- h: y,
108
- i: i.toString(),
109
- static: Math.random() < 0.05
110
- };
111
- });
112
- }*/
113
-
114
75
115
76
0 commit comments