| author | veltr |
| Thu, 03 May 2012 17:52:52 +0200 | |
| branch | new-model |
| changeset 882 | 61c384dda19e |
| parent 881 | f11b234497f7 |
| child 883 | d35ad8111c5e |
| permissions | -rw-r--r-- |
| 123 | 1 |
/* init.js - initialization and configuration of Popcorn and the widgets |
| 531 | 2 |
*/ |
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
3 |
|
| 882 | 4 |
if (typeof window.IriSP === "undefined") { |
5 |
IriSP = {}; |
|
6 |
} |
|
7 |
||
| 868 | 8 |
/* The Metadataplayer Object, single point of entry, replaces IriSP.init_player */ |
9 |
||
10 |
IriSP.Metadataplayer = function(config, video_metadata) { |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
11 |
for (var key in IriSP.guiDefaults) { |
| 882 | 12 |
if (IriSP.guiDefaults.hasOwnProperty(key) && !config.gui.hasOwnProperty(key)) { |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
13 |
config.gui[key] = IriSP.guiDefaults[key] |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
14 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
15 |
} |
| 868 | 16 |
var _container = document.getElementById(config.gui.container); |
| 882 | 17 |
_container.innerHTML = '<h3 class="Ldt-Loader">Loading... Chargement...</h3>'; |
| 868 | 18 |
this.video_metadata = video_metadata; |
19 |
this.sourceManager = new IriSP.Model.Directory(); |
|
20 |
this.config = config; |
|
21 |
this.loadLibs(); |
|
22 |
} |
|
23 |
||
24 |
IriSP.Metadataplayer.prototype.toString = function() { |
|
25 |
return 'A Metadataplayer in DIV #' + this.config.gui.container; |
|
26 |
} |
|
27 |
||
28 |
IriSP.Metadataplayer.prototype.loadLibs = function() { |
|
| 882 | 29 |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
30 |
var $L = $LAB.script(IriSP.getLib("underscore")).script(IriSP.getLib("Mustache")).script(IriSP.getLib("jQuery")).script(IriSP.getLib("swfObject")).wait().script(IriSP.getLib("jQueryUI")); |
| 868 | 31 |
|
32 |
if(this.config.player.type === "jwplayer" || this.config.player.type === "allocine" || this.config.player.type === "dailymotion") { |
|
33 |
// load our popcorn.js lookalike |
|
34 |
$L.script(IriSP.getLib("jwplayer")); |
|
35 |
} else { |
|
36 |
// load the real popcorn |
|
37 |
$L.script(IriSP.getLib("popcorn")).script(IriSP.getLib("popcorn.code")); |
|
38 |
// load plugins if necessary |
|
39 |
if(this.config.player.type === "youtube") { |
|
40 |
$L.script(IriSP.getLib("popcorn.youtube")); |
|
41 |
} |
|
42 |
if(this.config.player.type === "vimeo"){ |
|
43 |
$L.script(IriSP.getLib("popcorn.vimeo")); |
|
44 |
} |
|
45 |
} |
|
46 |
||
47 |
/* widget specific requirements */ |
|
48 |
for(var _i = 0; _i < this.config.gui.widgets.length; _i++) { |
|
| 882 | 49 |
var _t = this.config.gui.widgets[_i].type; |
50 |
if (typeof IriSP.widgetsRequirements[_t] !== "undefined" && typeof IriSP.widgetsRequirements[_t].requires !== "undefined") { |
|
51 |
$L.script(IriSP.getLib(IriSP.widgetsRequirements[_t].requires)); |
|
| 868 | 52 |
} |
53 |
} |
|
54 |
|
|
55 |
var _this = this; |
|
56 |
|
|
57 |
$L.wait(function() { |
|
| 882 | 58 |
IriSP.jQuery = window.jQuery.noConflict(); |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
59 |
IriSP._ = window._.noConflict(); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
60 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
61 |
IriSP.loadCss(IriSP.getLib("cssjQueryUI")) |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
62 |
IriSP.loadCss(_this.config.gui.css); |
| 868 | 63 |
|
64 |
_this.onLibsLoaded(); |
|
65 |
|
|
66 |
}); |
|
67 |
} |
|
68 |
||
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
69 |
IriSP.Metadataplayer.prototype.onLibsLoaded = function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
70 |
this.videoData = this.loadMetadata(this.video_metadata); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
71 |
this.$ = IriSP.jQuery('#' + this.config.gui.container); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
72 |
this.$.css({ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
73 |
"width": this.config.gui.width, |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
74 |
"clear": "both" |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
75 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
76 |
if (typeof this.config.gui.height !== "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
77 |
this.$.css("height", this.config.gui.height); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
78 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
79 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
80 |
var _this = this; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
81 |
this.videoData.onLoad(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
82 |
_this.onVideoDataLoaded(); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
83 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
84 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
85 |
|
| 868 | 86 |
IriSP.Metadataplayer.prototype.loadMetadata = function(_metadataInfo) { |
87 |
if (typeof _metadataInfo.serializer === "undefined" && typeof _metadataInfo.format !== "undefined") { |
|
88 |
_metadataInfo.serializer = IriSP.serializers[_metadataInfo.format]; |
|
89 |
} |
|
90 |
if (typeof _metadataInfo.url === "undefined" && typeof _metadataInfo.src !== "undefined") { |
|
91 |
_metadataInfo.url = _metadataInfo.src; |
|
92 |
} |
|
93 |
if (typeof _metadataInfo.url !== "undefined" && typeof _metadataInfo.serializer !== "undefined") { |
|
94 |
return this.sourceManager.remoteSource(_metadataInfo); |
|
95 |
} else { |
|
96 |
return this.sourceManager.newLocalSource(_metadataInfo); |
|
97 |
} |
|
98 |
} |
|
99 |
||
100 |
IriSP.Metadataplayer.prototype.onVideoDataLoaded = function() { |
|
101 |
if (typeof this.videoData !== "undefined" && typeof this.config.player.video === "undefined") { |
|
102 |
var _media = this.videoData.currentMedia; |
|
103 |
if (typeof _media !== "undefined") { |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
104 |
this.config.player.video = _media.video; |
| 868 | 105 |
if (typeof _media.streamer !== "undefined") { |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
106 |
this.config.player.streamer = _media.streamer; |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
107 |
this.config.player.video = _media.video.replace(_media.streamer,''); |
| 868 | 108 |
} |
109 |
} |
|
110 |
|
|
111 |
} |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
112 |
this.configurePopcorn(); |
| 868 | 113 |
this.widgets = []; |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
114 |
var _this = this; |
| 868 | 115 |
for(var i = 0; i < this.config.gui.widgets.length; i++) { |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
116 |
this.loadWidget(this.config.gui.widgets[i], function(_widget) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
117 |
_this.widgets.push(_widget) |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
118 |
}); |
| 868 | 119 |
}; |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
120 |
this.$.find('.Ldt-Loader').detach(); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
121 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
122 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
123 |
IriSP.Metadataplayer.prototype.loadWidget = function(_widgetConfig, _callback) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
124 |
/* Creating containers if needed */ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
125 |
if (typeof _widgetConfig.container === "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
126 |
var _divs = this.layoutDivs(_widgetConfig.type); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
127 |
_widgetConfig.container = _divs[0]; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
128 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
129 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
130 |
var _this = this; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
131 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
132 |
if (typeof IriSP.Widgets[_widgetConfig.type] !== "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
133 |
IriSP._.defer(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
134 |
_callback(new IriSP.Widgets[_widgetConfig.type](_this, _widgetConfig)); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
135 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
136 |
} else { |
| 882 | 137 |
/* Loading Widget CSS */ |
138 |
if (typeof IriSP.widgetsRequirements[_widgetConfig.type] === "undefined" || typeof IriSP.widgetsRequirements[_widgetConfig.type].noCss === "undefined" || !IriSP.widgetsRequirements[_widgetConfig.type].noCss) { |
|
139 |
IriSP.loadCss(IriSP.widgetsDir + '/' + _widgetConfig.type + '.css'); |
|
140 |
} |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
141 |
/* Loading Widget JS */ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
142 |
$LAB.script(IriSP.widgetsDir + '/' + _widgetConfig.type + '.js').wait(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
143 |
_callback(new IriSP.Widgets[_widgetConfig.type](_this, _widgetConfig)); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
144 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
145 |
} |
| 868 | 146 |
} |
147 |
||
148 |
IriSP.Metadataplayer.prototype.configurePopcorn = function() { |
|
149 |
var pop, |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
150 |
ret = this.layoutDivs("video"), |
| 868 | 151 |
containerDiv = ret[0], |
152 |
spacerDiv = ret[1]; |
|
153 |
||
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
154 |
switch(this.config.player.type) { |
| 866 | 155 |
/* |
156 |
todo : dynamically create the div/video tag which |
|
157 |
will contain the video. |
|
158 |
*/ |
|
159 |
case "html5": |
|
160 |
var tmpId = Popcorn.guid("video"); |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
161 |
IriSP.jQuery("#" + containerDiv).append("<video src='" + this.config.player.video + "' id='" + tmpId + "'></video>"); |
|
402
6148fb647f46
html5 video can now set the height and width of the video.
hamidouk
parents:
315
diff
changeset
|
162 |
|
| 866 | 163 |
if(options.hasOwnProperty("width")) |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
164 |
IriSP.jQuery("#" + containerDiv).css("width", this.config.player.width); |
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
165 |
|
| 866 | 166 |
if(options.hasOwnProperty("height")) |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
167 |
IriSP.jQuery("#" + containerDiv).css("height", this.config.player.height); |
| 866 | 168 |
pop = Popcorn("#" + tmpId); |
169 |
break; |
|
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
170 |
|
| 866 | 171 |
case "jwplayer": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
172 |
var opts = IriSP.jQuery.extend({}, this.config.player); |
| 866 | 173 |
delete opts.container; |
174 |
delete opts.type; |
|
175 |
opts.file = opts.video; |
|
176 |
delete opts.video; |
|
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
177 |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
178 |
if(!opts.hasOwnProperty("flashplayer")) { |
| 866 | 179 |
opts.flashplayer = IriSP.jwplayer_swf_path; |
|
816
e97e22801146
use href or url indiscriminately to get the source of the rtmp.
hamidouk
parents:
811
diff
changeset
|
180 |
} |
| 866 | 181 |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
182 |
if(!opts.hasOwnProperty("controlbar.position")) { |
| 866 | 183 |
opts["controlbar.position"] = "none"; |
184 |
} |
|
185 |
pop = new IriSP.PopcornReplacement.jwplayer("#" + containerDiv, opts); |
|
186 |
break; |
|
|
456
7fcdb501effd
added a switch to choose different options if using rtmp or not.
hamidouk
parents:
453
diff
changeset
|
187 |
|
| 866 | 188 |
case "youtube": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
189 |
var opts = IriSP.jQuery.extend({}, this.config.player); |
| 866 | 190 |
delete opts.container; |
191 |
opts.controls = 0; |
|
192 |
opts.autostart = false; |
|
193 |
// Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div. |
|
194 |
IriSP.jQuery("#" + containerDiv).css({ |
|
195 |
width : opts.width + "px", |
|
196 |
height : opts.height + "px" |
|
197 |
}) |
|
198 |
pop = Popcorn.youtube("#" + containerDiv, opts.video, opts); |
|
199 |
break; |
|
|
558
29a370694c53
delete type variable which seemed to sometimes (but not always) confuse the jwplayer,
hamidouk
parents:
557
diff
changeset
|
200 |
|
| 866 | 201 |
case "dailymotion": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
202 |
pop = new IriSP.PopcornReplacement.dailymotion("#" + containerDiv, this.config.player); |
| 866 | 203 |
break; |
204 |
||
205 |
case "allocine": |
|
206 |
/* pass the options as-is to the allocine player and let it handle everything */ |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
207 |
pop = new IriSP.PopcornReplacement.allocine("#" + containerDiv, this.config.player); |
| 866 | 208 |
break; |
| 868 | 209 |
|
| 866 | 210 |
default: |
211 |
pop = undefined; |
|
| 123 | 212 |
}; |
| 866 | 213 |
|
| 868 | 214 |
this.popcorn = pop; |
215 |
} |
|
| 866 | 216 |
|
| 868 | 217 |
/** create a subdiv with an unique id, and a spacer div as well. |
218 |
@param widgetName the name of the widget. |
|
219 |
@return an array of the form [createdivId, spacerdivId]. |
|
220 |
*/ |
|
221 |
IriSP.Metadataplayer.prototype.layoutDivs = function(_name) { |
|
222 |
if (typeof(_name) === "undefined") { |
|
223 |
_name = ""; |
|
| 866 | 224 |
} |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
225 |
var newDiv = IriSP._.uniqueId(this.config.gui.container + "_widget_" + _name + "_"), |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
226 |
spacerDiv = IriSP._.uniqueId("LdtPlayer_spacer_"), |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
227 |
divHtml = IriSP.jQuery('<div>') |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
228 |
.attr("id",newDiv) |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
229 |
.css({ |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
230 |
width: this.config.gui.width + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
231 |
position: "relative", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
232 |
clear: "both" |
| 868 | 233 |
}), |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
234 |
spacerHtml = IriSP.jQuery('<div>') |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
235 |
.attr("id",spacerDiv) |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
236 |
.css({ |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
237 |
width: this.config.gui.width + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
238 |
height: this.config.gui.spacer_div_height + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
239 |
position: "relative", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
240 |
clear: "both" |
| 868 | 241 |
}); |
242 |
|
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
243 |
this.$.append(divHtml); |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
244 |
this.$.append(spacerHtml); |
|
743
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
707
diff
changeset
|
245 |
|
| 868 | 246 |
return [newDiv, spacerDiv]; |
| 866 | 247 |
}; |