| author | veltr |
| Thu, 06 Jun 2013 17:24:15 +0200 | |
| changeset 190 | a9040a7c47d9 |
| parent 188 | 50b3287d06dd |
| child 195 | 15e048e00002 |
| permissions | -rw-r--r-- |
| 1 | 1 |
/* |
| 185 | 2 |
_____ _ |
3 |
| __ \ | | |
|
4 |
| |__) |___ _ __ | | ____ _ _ __ |
|
5 |
| _ // _ \ '_ \| |/ / _` | '_ \ |
|
6 |
| | \ \ __/ | | | < (_| | | | | |
|
7 |
|_| \_\___|_| |_|_|\_\__,_|_| |_| |
|
8 |
||
| 163 | 9 |
* Copyright 2012-2013 Institut de recherche et d'innovation |
| 28 | 10 |
* contributor(s) : Yves-Marie Haussonne, Raphael Velt, Samuel Huron |
| 1 | 11 |
* |
12 |
* contact@iri.centrepompidou.fr |
|
13 |
* http://www.iri.centrepompidou.fr |
|
14 |
* |
|
15 |
* This software is a computer program whose purpose is to show and add annotations on a video . |
|
16 |
* This software is governed by the CeCILL-C license under French law and |
|
17 |
* abiding by the rules of distribution of free software. You can use, |
|
18 |
* modify and/ or redistribute the software under the terms of the CeCILL-C |
|
19 |
* license as circulated by CEA, CNRS and INRIA at the following URL |
|
20 |
* "http://www.cecill.info". |
|
21 |
* |
|
22 |
* The fact that you are presently reading this means that you have had |
|
23 |
* knowledge of the CeCILL-C license and that you accept its terms. |
|
24 |
*/ |
|
25 |
||
| 5 | 26 |
/* Declaring the Renkan Namespace Rkns and Default values */ |
| 1 | 27 |
|
| 28 | 28 |
if (typeof Rkns !== "object") { |
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
29 |
Rkns = {}; |
| 3 | 30 |
} |
| 1 | 31 |
|
32 |
Rkns.$ = jQuery; |
|
33 |
||
34 |
Rkns._ = _; |
|
35 |
||
| 68 | 36 |
Rkns.VERSION = '0.2'; |
37 |
||
| 69 | 38 |
Rkns.pickerColors = ["#8f1919", "#a80000", "#d82626", "#ff0000", "#e87c7c", "#ff6565", "#f7d3d3", "#fecccc", |
39 |
"#8f5419", "#a85400", "#d87f26", "#ff7f00", "#e8b27c", "#ffb265", "#f7e5d3", "#fee5cc", |
|
40 |
"#8f8f19", "#a8a800", "#d8d826", "#feff00", "#e8e87c", "#feff65", "#f7f7d3", "#fefecc", |
|
41 |
"#198f19", "#00a800", "#26d826", "#00ff00", "#7ce87c", "#65ff65", "#d3f7d3", "#ccfecc", |
|
42 |
"#198f8f", "#00a8a8", "#26d8d8", "#00feff", "#7ce8e8", "#65feff", "#d3f7f7", "#ccfefe", |
|
43 |
"#19198f", "#0000a8", "#2626d8", "#0000ff", "#7c7ce8", "#6565ff", "#d3d3f7", "#ccccfe", |
|
44 |
"#8f198f", "#a800a8", "#d826d8", "#ff00fe", "#e87ce8", "#ff65fe", "#f7d3f7", "#feccfe", |
|
45 |
"#000000", "#242424", "#484848", "#6d6d6d", "#919191", "#b6b6b6", "#dadada", "#ffffff"]; |
|
| 52 | 46 |
|
| 34 | 47 |
Rkns._BaseBin = function(_renkan, _opts) { |
| 21 | 48 |
if (typeof _renkan !== "undefined") { |
49 |
this.renkan = _renkan; |
|
50 |
this.renkan.$.find(".Rk-Bin-Main").hide(); |
|
51 |
this.$ = Rkns.$('<li>') |
|
52 |
.addClass("Rk-Bin") |
|
53 |
.appendTo(_renkan.$.find(".Rk-Bin-List")); |
|
| 34 | 54 |
this.title_icon_$ = Rkns.$('<span>') |
55 |
.addClass("Rk-Bin-Title-Icon") |
|
56 |
.appendTo(this.$); |
|
| 42 | 57 |
|
| 34 | 58 |
var _this = this; |
| 42 | 59 |
|
60 |
Rkns.$('<a>') |
|
| 119 | 61 |
.attr({ |
| 160 | 62 |
href: "#", |
63 |
title: _renkan.translate("Close bin") |
|
64 |
}) |
|
| 34 | 65 |
.addClass("Rk-Bin-Close") |
66 |
.html('×') |
|
67 |
.appendTo(this.$) |
|
68 |
.click(function() { |
|
69 |
_this.destroy(); |
|
| 119 | 70 |
if (!_renkan.$.find(".Rk-Bin-Main:visible").length) { |
| 160 | 71 |
_renkan.$.find(".Rk-Bin-Main:last").slideDown(); |
| 119 | 72 |
} |
73 |
_renkan.resizeBins(); |
|
| 42 | 74 |
return false; |
75 |
}); |
|
76 |
Rkns.$('<a>') |
|
| 119 | 77 |
.attr({ |
| 160 | 78 |
href: "#", |
79 |
title: _renkan.translate("Refresh bin") |
|
80 |
}) |
|
| 42 | 81 |
.addClass("Rk-Bin-Refresh") |
82 |
.appendTo(this.$) |
|
83 |
.click(function() { |
|
84 |
_this.refresh(); |
|
85 |
return false; |
|
| 34 | 86 |
}); |
| 44 | 87 |
this.count_$ = Rkns.$('<div>') |
88 |
.addClass("Rk-Bin-Count") |
|
89 |
.appendTo(this.$); |
|
| 21 | 90 |
this.title_$ = Rkns.$('<h2>') |
91 |
.addClass("Rk-Bin-Title") |
|
92 |
.appendTo(this.$); |
|
93 |
this.main_$ = Rkns.$('<div>') |
|
94 |
.addClass("Rk-Bin-Main") |
|
| 64 | 95 |
.appendTo(this.$) |
| 66 | 96 |
.html('<h4 class="Rk-Bin-Loading">' + _renkan.translate("Loading, please wait") + '</h4>'); |
| 26 | 97 |
this.title_$.html(_opts.title || '(new bin)'); |
| 21 | 98 |
this.renkan.resizeBins(); |
| 42 | 99 |
|
100 |
if (_opts.auto_refresh) { |
|
101 |
window.setInterval(function() { |
|
102 |
_this.refresh(); |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
103 |
},_opts.auto_refresh); |
| 42 | 104 |
} |
| 20 | 105 |
} |
| 163 | 106 |
}; |
| 34 | 107 |
|
108 |
Rkns._BaseBin.prototype.destroy = function() { |
|
109 |
this.$.detach(); |
|
110 |
this.renkan.resizeBins(); |
|
| 163 | 111 |
}; |
| 34 | 112 |
|
| 20 | 113 |
/* Point of entry */ |
114 |
||
115 |
Rkns.Renkan = function(_opts) { |
|
| 68 | 116 |
var _this = this; |
117 |
|
|
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
118 |
this.options = _.defaults(_opts, Rkns.defaults); |
|
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
119 |
|
| 160 | 120 |
Rkns._(this.options.property_files).each(function(f) { |
121 |
Rkns.$.getJSON(f, function(data) { |
|
122 |
_this.options.properties = _this.options.properties.concat(data); |
|
123 |
}); |
|
124 |
}); |
|
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
125 |
|
|
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
126 |
this.read_only = this.options.read_only || !this.options.editor_mode; |
|
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
127 |
|
| 23 | 128 |
this.project = new Rkns.Models.Project(); |
| 69 | 129 |
|
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
130 |
if (typeof this.options.user_id !== "undefined") { |
|
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
131 |
this.current_user = this.options.user_id; |
| 4 | 132 |
} |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
133 |
this.$ = Rkns.$("#" + this.options.container); |
| 34 | 134 |
this.$ |
135 |
.addClass("Rk-Main") |
|
| 68 | 136 |
.html(this.template(this)); |
| 188 | 137 |
|
138 |
if (this.options.show_editor) { |
|
139 |
this.renderer = new Rkns.Renderer.Scene(this); |
|
140 |
} |
|
141 |
|
|
| 21 | 142 |
this.tabs = []; |
| 34 | 143 |
this.search_engines = []; |
| 56 | 144 |
|
145 |
this.current_user_list = new Rkns.Models.UsersList(); |
|
146 |
|
|
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
147 |
if (!this.options.search.length) { |
| 44 | 148 |
this.$.find(".Rk-Web-Search-Form").detach(); |
| 21 | 149 |
} else { |
| 34 | 150 |
var _tmpl = Rkns._.template('<li class="<%= className %>" data-key="<%= key %>"><%= title %></li>'), |
151 |
_select = this.$.find(".Rk-Search-List"), |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
152 |
_input = this.$.find(".Rk-Web-Search-Input"), |
| 44 | 153 |
_form = this.$.find(".Rk-Web-Search-Form"); |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
154 |
Rkns._(this.options.search).each(function(_search, _key) { |
| 160 | 155 |
if (Rkns[_search.type] && Rkns[_search.type].Search) { |
156 |
_this.search_engines.push(new Rkns[_search.type].Search(_this, _search)); |
|
157 |
} |
|
| 34 | 158 |
}); |
| 24 | 159 |
_select.html( |
| 34 | 160 |
Rkns._(this.search_engines).map(function(_search, _key) { |
| 24 | 161 |
return _tmpl({ |
162 |
key: _key, |
|
| 34 | 163 |
title: _search.getSearchTitle(), |
164 |
className: _search.getBgClass() |
|
| 24 | 165 |
}); |
| 21 | 166 |
}).join("") |
| 34 | 167 |
); |
168 |
_select.find("li").click(function() { |
|
169 |
var _el = Rkns.$(this); |
|
170 |
_this.setSearchEngine(_el.attr("data-key")); |
|
| 24 | 171 |
_form.submit(); |
172 |
}); |
|
173 |
_form.submit(function() { |
|
174 |
if (_input.val()) { |
|
| 34 | 175 |
var _search = _this.search_engine; |
176 |
_search.search(_input.val()); |
|
| 24 | 177 |
} |
178 |
return false; |
|
179 |
}); |
|
|
36
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
180 |
this.$.find(".Rk-Search-Current").mouseenter( |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
181 |
function() { _select.slideDown(); } |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
182 |
); |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
183 |
this.$.find(".Rk-Search-Select").mouseleave( |
| 70 | 184 |
function() { _select.hide(); } |
|
36
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
185 |
); |
| 34 | 186 |
this.setSearchEngine(0); |
| 21 | 187 |
} |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
188 |
Rkns._(this.options.bins).each(function(_bin) { |
| 160 | 189 |
if (Rkns[_bin.type] && Rkns[_bin.type].Bin) { |
190 |
_this.tabs.push(new Rkns[_bin.type].Bin(_this, _bin)); |
|
191 |
} |
|
| 42 | 192 |
}); |
| 24 | 193 |
|
| 155 | 194 |
var elementDropped = false; |
195 |
|
|
| 21 | 196 |
this.$.find(".Rk-Bins") |
|
41
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
197 |
.on("click",".Rk-Bin-Title,.Rk-Bin-Title-Icon", function() { |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
198 |
var _mainDiv = Rkns.$(this).siblings(".Rk-Bin-Main"); |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
199 |
if (_mainDiv.is(":hidden")) { |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
200 |
_this.$.find(".Rk-Bin-Main").slideUp(); |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
201 |
_mainDiv.slideDown(); |
| 21 | 202 |
} |
| 188 | 203 |
}); |
204 |
|
|
205 |
if (this.options.show_editor) { |
|
206 |
|
|
207 |
this.$.find(".Rk-Bins").on("mouseover", ".Rk-Bin-Item", function(_e) { |
|
|
41
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
208 |
var _t = Rkns.$(this); |
| 26 | 209 |
if (_t && $(_t).attr("data-uri")) { |
210 |
var _models = _this.project.get("nodes").where({ |
|
211 |
uri: $(_t).attr("data-uri") |
|
212 |
}); |
|
213 |
Rkns._(_models).each(function(_model) { |
|
214 |
_this.renderer.highlightModel(_model); |
|
215 |
}); |
|
216 |
} |
|
217 |
}).mouseout(function() { |
|
218 |
_this.renderer.unhighlightAll(); |
|
| 113 | 219 |
}).on("mousemove", ".Rk-Bin-Item", function(e) { |
| 160 | 220 |
try { |
221 |
this.dragDrop(); |
|
222 |
} |
|
223 |
catch(err) {} |
|
| 155 | 224 |
}).on("touchstart", ".Rk-Bin-Item", function(e) { |
| 160 | 225 |
elementDropped = false; |
| 155 | 226 |
}).on("touchmove", ".Rk-Bin-Item", function(e) { |
| 160 | 227 |
e.preventDefault(); |
228 |
var touch = e.originalEvent.changedTouches[0], |
|
229 |
off = _this.renderer.canvas_$.offset(), |
|
230 |
w = _this.renderer.canvas_$.width(), |
|
231 |
h = _this.renderer.canvas_$.height(); |
|
232 |
if (touch.pageX >= off.left && touch.pageX < (off.left + w) && touch.pageY >= off.top && touch.pageY < (off.top + h)) { |
|
233 |
if (elementDropped) { |
|
234 |
_this.renderer.onMouseMove(touch, true); |
|
235 |
} else { |
|
236 |
elementDropped = true; |
|
237 |
var div = document.createElement('div'); |
|
238 |
div.appendChild(this.cloneNode(true)); |
|
239 |
_this.renderer.dropData({"text/html": div.innerHTML}, touch); |
|
240 |
_this.renderer.onMouseDown(touch, true); |
|
241 |
} |
|
242 |
} |
|
| 155 | 243 |
}).on("touchend", ".Rk-Bin-Item", function(e) { |
| 160 | 244 |
if (elementDropped) { |
245 |
_this.renderer.onMouseUp(e.originalEvent.changedTouches[0], true); |
|
246 |
} |
|
247 |
elementDropped = false; |
|
| 68 | 248 |
}).on("dragstart", ".Rk-Bin-Item", function(e) { |
| 160 | 249 |
var div = document.createElement('div'); |
250 |
div.appendChild(this.cloneNode(true)); |
|
251 |
try { |
|
252 |
e.originalEvent.dataTransfer.setData("text/html",div.innerHTML); |
|
253 |
} |
|
254 |
catch(err) { |
|
255 |
e.originalEvent.dataTransfer.setData("text",div.innerHTML); |
|
256 |
} |
|
| 20 | 257 |
}); |
| 188 | 258 |
|
259 |
} |
|
260 |
|
|
| 21 | 261 |
Rkns.$(window).resize(function() { |
262 |
_this.resizeBins(); |
|
| 2 | 263 |
}); |
| 44 | 264 |
|
265 |
this.$.find(".Rk-Bins-Search-Input").on("change keyup paste input", function() { |
|
266 |
var val = Rkns.$(this).val(); |
|
267 |
Rkns._(_this.tabs).each(function(tab) { |
|
268 |
tab.render(val); |
|
269 |
}); |
|
270 |
}); |
|
271 |
this.$.find(".Rk-Bins-Search-Form").submit(function() { |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
272 |
return false; |
| 44 | 273 |
}); |
| 163 | 274 |
}; |
| 1 | 275 |
|
| 20 | 276 |
Rkns.Renkan.prototype.template = Rkns._.template( |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
277 |
'<% if (options.show_bins) { %><div class="Rk-Bins"><div class="Rk-Bins-Head"><h2 class="Rk-Bins-Title"><%- translate("Select contents:")%></h2>' |
| 68 | 278 |
+ '<form class="Rk-Web-Search-Form Rk-Search-Form"><input class="Rk-Web-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search the Web") %>" />' |
| 34 | 279 |
+ '<div class="Rk-Search-Select"><div class="Rk-Search-Current"></div><ul class="Rk-Search-List"></ul></div>' |
| 119 | 280 |
+ '<input type="submit" value="" class="Rk-Web-Search-Submit Rk-Search-Submit" title="<%- translate("Search the Web") %>" /></form>' |
| 68 | 281 |
+ '<form class="Rk-Bins-Search-Form Rk-Search-Form"><input class="Rk-Bins-Search-Input Rk-Search-Input" type="search" placeholder="<%- translate("Search in Bins") %>" />' |
| 119 | 282 |
+ '<input type="submit" value="" class="Rk-Bins-Search-Submit Rk-Search-Submit" title="<%- translate("Search in Bins") %>" /></form></div>' |
| 188 | 283 |
+ '<ul class="Rk-Bin-List"></ul></div><% } %>' |
284 |
+ '<% if (options.show_editor) { %><div class="Rk-Render Rk-Render-<% if (options.show_bins) { %>Panel<% } else { %>Full<% } %>"></div><% } %>' |
|
| 20 | 285 |
); |
| 18 | 286 |
|
| 159 | 287 |
Rkns.Renkan.prototype.translate = function(_text) { |
| 160 | 288 |
if (Rkns.i18n[this.options.language] && Rkns.i18n[this.options.language][_text]) { |
289 |
return Rkns.i18n[this.options.language][_text]; |
|
290 |
} |
|
291 |
if (this.options.language.length > 2 && Rkns.i18n[this.options.language.substr(0,2)] && Rkns.i18n[this.options.language.substr(0,2)][_text]) { |
|
292 |
return Rkns.i18n[this.options.language.substr(0,2)][_text]; |
|
293 |
} |
|
294 |
return _text; |
|
| 163 | 295 |
}; |
| 159 | 296 |
|
| 111 | 297 |
Rkns.Renkan.prototype.onStatusChange = function() { |
| 160 | 298 |
this.renderer.onStatusChange(); |
| 163 | 299 |
}; |
| 111 | 300 |
|
| 34 | 301 |
Rkns.Renkan.prototype.setSearchEngine = function(_key) { |
302 |
this.search_engine = this.search_engines[_key]; |
|
303 |
this.$.find(".Rk-Search-Current").attr("class","Rk-Search-Current " + this.search_engine.getBgClass()); |
|
| 163 | 304 |
}; |
| 34 | 305 |
|
| 21 | 306 |
Rkns.Renkan.prototype.resizeBins = function() { |
| 75 | 307 |
var _d = + this.$.find(".Rk-Bins-Head").outerHeight(); |
| 44 | 308 |
this.$.find(".Rk-Bin-Title:visible").each(function() { |
| 26 | 309 |
_d += Rkns.$(this).outerHeight(); |
310 |
}); |
|
| 21 | 311 |
this.$.find(".Rk-Bin-Main").css({ |
312 |
height: this.$.find(".Rk-Bins").height() - _d |
|
313 |
}); |
|
| 163 | 314 |
}; |
| 21 | 315 |
|
| 1 | 316 |
/* Utility functions */ |
317 |
||
318 |
Rkns.Utils = { |
|
319 |
_ID_AUTO_INCREMENT : 0, |
|
320 |
_ID_BASE : (function(_d) { |
|
| 160 | 321 |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
322 |
function pad(n){return n<10 ? '0'+n : n;} |
| 1 | 323 |
function fillrand(n) { |
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
324 |
var _res = ''; |
| 1 | 325 |
for (var i=0; i<n; i++) { |
326 |
_res += Math.floor(16*Math.random()).toString(16); |
|
327 |
} |
|
328 |
return _res; |
|
329 |
} |
|
330 |
return _d.getUTCFullYear() + '-' |
|
331 |
+ pad(_d.getUTCMonth()+1) + '-' |
|
332 |
+ pad(_d.getUTCDate()) + '-' |
|
333 |
+ fillrand(16); |
|
| 160 | 334 |
|
| 1 | 335 |
})(new Date()), |
336 |
getUID : function(_base) { |
|
| 160 | 337 |
|
| 1 | 338 |
var _n = (++this._ID_AUTO_INCREMENT).toString(16), |
339 |
_base = (typeof _base === "undefined" ? "" : _base + "-" ); |
|
340 |
while (_n.length < 4) { |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
341 |
_n = '0' + _n; |
| 1 | 342 |
} |
343 |
return _base + this._ID_BASE + '-' + _n; |
|
| 160 | 344 |
|
| 1 | 345 |
}, |
| 132 | 346 |
getFullURL : function(url) { |
| 160 | 347 |
|
348 |
if(typeof(url) == 'undefined' || url == null ) { |
|
349 |
return ""; |
|
350 |
} |
|
351 |
if(/https?:\/\//.test(url)) { |
|
352 |
return url; |
|
353 |
} |
|
354 |
var img = new Image(); |
|
355 |
img.src = url; |
|
356 |
var res = img.src; |
|
357 |
img.src = null; |
|
358 |
return res; |
|
359 |
|
|
| 132 | 360 |
}, |
| 1 | 361 |
inherit : function(_baseClass, _callbefore) { |
| 160 | 362 |
|
| 163 | 363 |
var _class = function(_arg) { |
| 1 | 364 |
if (typeof _callbefore === "function") { |
365 |
_callbefore.apply(this, Array.prototype.slice.call(arguments, 0)); |
|
366 |
} |
|
| 28 | 367 |
_baseClass.apply(this, Array.prototype.slice.call(arguments, 0)); |
| 163 | 368 |
if (typeof this._init == "function" && !this._initialized) { |
| 28 | 369 |
this._init.apply(this, Array.prototype.slice.call(arguments, 0)); |
| 163 | 370 |
this._initialized = true; |
| 1 | 371 |
} |
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
372 |
}; |
| 163 | 373 |
Rkns._(_class.prototype).extend(_baseClass.prototype); |
| 1 | 374 |
return _class; |
| 160 | 375 |
|
| 1 | 376 |
} |
| 163 | 377 |
}; |
| 188 | 378 |
|
379 |
/* END main.js */ |