| author | veltr |
| Wed, 15 May 2013 15:40:09 +0200 | |
| changeset 185 | ad8c900d87e5 |
| parent 170 | 603ffa4c6fa5 |
| child 188 | 50b3287d06dd |
| 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)); |
| 23 | 137 |
this.renderer = new Rkns.Renderer.Scene(this); |
| 21 | 138 |
this.tabs = []; |
| 34 | 139 |
this.search_engines = []; |
| 56 | 140 |
|
141 |
this.current_user_list = new Rkns.Models.UsersList(); |
|
142 |
|
|
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
143 |
if (!this.options.search.length) { |
| 44 | 144 |
this.$.find(".Rk-Web-Search-Form").detach(); |
| 21 | 145 |
} else { |
| 34 | 146 |
var _tmpl = Rkns._.template('<li class="<%= className %>" data-key="<%= key %>"><%= title %></li>'), |
147 |
_select = this.$.find(".Rk-Search-List"), |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
148 |
_input = this.$.find(".Rk-Web-Search-Input"), |
| 44 | 149 |
_form = this.$.find(".Rk-Web-Search-Form"); |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
150 |
Rkns._(this.options.search).each(function(_search, _key) { |
| 160 | 151 |
if (Rkns[_search.type] && Rkns[_search.type].Search) { |
152 |
_this.search_engines.push(new Rkns[_search.type].Search(_this, _search)); |
|
153 |
} |
|
| 34 | 154 |
}); |
| 24 | 155 |
_select.html( |
| 34 | 156 |
Rkns._(this.search_engines).map(function(_search, _key) { |
| 24 | 157 |
return _tmpl({ |
158 |
key: _key, |
|
| 34 | 159 |
title: _search.getSearchTitle(), |
160 |
className: _search.getBgClass() |
|
| 24 | 161 |
}); |
| 21 | 162 |
}).join("") |
| 34 | 163 |
); |
164 |
_select.find("li").click(function() { |
|
165 |
var _el = Rkns.$(this); |
|
166 |
_this.setSearchEngine(_el.attr("data-key")); |
|
| 24 | 167 |
_form.submit(); |
168 |
}); |
|
169 |
_form.submit(function() { |
|
170 |
if (_input.val()) { |
|
| 34 | 171 |
var _search = _this.search_engine; |
172 |
_search.search(_input.val()); |
|
| 24 | 173 |
} |
174 |
return false; |
|
175 |
}); |
|
|
36
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
176 |
this.$.find(".Rk-Search-Current").mouseenter( |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
177 |
function() { _select.slideDown(); } |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
178 |
); |
|
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
179 |
this.$.find(".Rk-Search-Select").mouseleave( |
| 70 | 180 |
function() { _select.hide(); } |
|
36
d249d36ecc37
Add Edge button, French translation and various bugfixes
veltr
parents:
34
diff
changeset
|
181 |
); |
| 34 | 182 |
this.setSearchEngine(0); |
| 21 | 183 |
} |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
184 |
Rkns._(this.options.bins).each(function(_bin) { |
| 160 | 185 |
if (Rkns[_bin.type] && Rkns[_bin.type].Bin) { |
186 |
_this.tabs.push(new Rkns[_bin.type].Bin(_this, _bin)); |
|
187 |
} |
|
| 42 | 188 |
}); |
| 24 | 189 |
|
| 155 | 190 |
var elementDropped = false; |
191 |
|
|
| 21 | 192 |
this.$.find(".Rk-Bins") |
|
41
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
193 |
.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
|
194 |
var _mainDiv = Rkns.$(this).siblings(".Rk-Bin-Main"); |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
195 |
if (_mainDiv.is(":hidden")) { |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
196 |
_this.$.find(".Rk-Bin-Main").slideUp(); |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
197 |
_mainDiv.slideDown(); |
| 21 | 198 |
} |
|
41
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
199 |
}).on("mouseover", ".Rk-Bin-Item", function(_e) { |
|
9b9aabbb83bb
Today, I learned about the delegate function in jQuery
veltr
parents:
37
diff
changeset
|
200 |
var _t = Rkns.$(this); |
| 26 | 201 |
if (_t && $(_t).attr("data-uri")) { |
202 |
var _models = _this.project.get("nodes").where({ |
|
203 |
uri: $(_t).attr("data-uri") |
|
204 |
}); |
|
205 |
Rkns._(_models).each(function(_model) { |
|
206 |
_this.renderer.highlightModel(_model); |
|
207 |
}); |
|
208 |
} |
|
209 |
}).mouseout(function() { |
|
210 |
_this.renderer.unhighlightAll(); |
|
| 113 | 211 |
}).on("mousemove", ".Rk-Bin-Item", function(e) { |
| 160 | 212 |
try { |
213 |
this.dragDrop(); |
|
214 |
} |
|
215 |
catch(err) {} |
|
| 155 | 216 |
}).on("touchstart", ".Rk-Bin-Item", function(e) { |
| 160 | 217 |
elementDropped = false; |
| 155 | 218 |
}).on("touchmove", ".Rk-Bin-Item", function(e) { |
| 160 | 219 |
e.preventDefault(); |
220 |
var touch = e.originalEvent.changedTouches[0], |
|
221 |
off = _this.renderer.canvas_$.offset(), |
|
222 |
w = _this.renderer.canvas_$.width(), |
|
223 |
h = _this.renderer.canvas_$.height(); |
|
224 |
if (touch.pageX >= off.left && touch.pageX < (off.left + w) && touch.pageY >= off.top && touch.pageY < (off.top + h)) { |
|
225 |
if (elementDropped) { |
|
226 |
_this.renderer.onMouseMove(touch, true); |
|
227 |
} else { |
|
228 |
elementDropped = true; |
|
229 |
var div = document.createElement('div'); |
|
230 |
div.appendChild(this.cloneNode(true)); |
|
231 |
_this.renderer.dropData({"text/html": div.innerHTML}, touch); |
|
232 |
_this.renderer.onMouseDown(touch, true); |
|
233 |
} |
|
234 |
} |
|
| 155 | 235 |
}).on("touchend", ".Rk-Bin-Item", function(e) { |
| 160 | 236 |
if (elementDropped) { |
237 |
_this.renderer.onMouseUp(e.originalEvent.changedTouches[0], true); |
|
238 |
} |
|
239 |
elementDropped = false; |
|
| 68 | 240 |
}).on("dragstart", ".Rk-Bin-Item", function(e) { |
| 160 | 241 |
var div = document.createElement('div'); |
242 |
div.appendChild(this.cloneNode(true)); |
|
243 |
try { |
|
244 |
e.originalEvent.dataTransfer.setData("text/html",div.innerHTML); |
|
245 |
} |
|
246 |
catch(err) { |
|
247 |
e.originalEvent.dataTransfer.setData("text",div.innerHTML); |
|
248 |
} |
|
| 20 | 249 |
}); |
| 21 | 250 |
Rkns.$(window).resize(function() { |
251 |
_this.resizeBins(); |
|
| 2 | 252 |
}); |
| 44 | 253 |
|
254 |
this.$.find(".Rk-Bins-Search-Input").on("change keyup paste input", function() { |
|
255 |
var val = Rkns.$(this).val(); |
|
256 |
Rkns._(_this.tabs).each(function(tab) { |
|
257 |
tab.render(val); |
|
258 |
}); |
|
259 |
}); |
|
260 |
this.$.find(".Rk-Bins-Search-Form").submit(function() { |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
261 |
return false; |
| 44 | 262 |
}); |
| 163 | 263 |
}; |
| 1 | 264 |
|
| 20 | 265 |
Rkns.Renkan.prototype.template = Rkns._.template( |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
266 |
'<% if (options.show_bins) { %><div class="Rk-Bins"><div class="Rk-Bins-Head"><h2 class="Rk-Bins-Title"><%- translate("Select contents:")%></h2>' |
| 68 | 267 |
+ '<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 | 268 |
+ '<div class="Rk-Search-Select"><div class="Rk-Search-Current"></div><ul class="Rk-Search-List"></ul></div>' |
| 119 | 269 |
+ '<input type="submit" value="" class="Rk-Web-Search-Submit Rk-Search-Submit" title="<%- translate("Search the Web") %>" /></form>' |
| 68 | 270 |
+ '<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 | 271 |
+ '<input type="submit" value="" class="Rk-Bins-Search-Submit Rk-Search-Submit" title="<%- translate("Search in Bins") %>" /></form></div>' |
|
114
110f99eb417e
moved options to defaults.js and improved read-only switching
veltr
parents:
113
diff
changeset
|
272 |
+ '<ul class="Rk-Bin-List"></ul></div><% } %><div class="Rk-Render Rk-Render-<% if (options.show_bins) { %>Panel<% } else { %>Full<% } %>"></div>' |
| 20 | 273 |
); |
| 18 | 274 |
|
| 159 | 275 |
Rkns.Renkan.prototype.translate = function(_text) { |
| 160 | 276 |
if (Rkns.i18n[this.options.language] && Rkns.i18n[this.options.language][_text]) { |
277 |
return Rkns.i18n[this.options.language][_text]; |
|
278 |
} |
|
279 |
if (this.options.language.length > 2 && Rkns.i18n[this.options.language.substr(0,2)] && Rkns.i18n[this.options.language.substr(0,2)][_text]) { |
|
280 |
return Rkns.i18n[this.options.language.substr(0,2)][_text]; |
|
281 |
} |
|
282 |
return _text; |
|
| 163 | 283 |
}; |
| 159 | 284 |
|
| 111 | 285 |
Rkns.Renkan.prototype.onStatusChange = function() { |
| 160 | 286 |
this.renderer.onStatusChange(); |
| 163 | 287 |
}; |
| 111 | 288 |
|
| 34 | 289 |
Rkns.Renkan.prototype.setSearchEngine = function(_key) { |
290 |
this.search_engine = this.search_engines[_key]; |
|
291 |
this.$.find(".Rk-Search-Current").attr("class","Rk-Search-Current " + this.search_engine.getBgClass()); |
|
| 163 | 292 |
}; |
| 34 | 293 |
|
| 21 | 294 |
Rkns.Renkan.prototype.resizeBins = function() { |
| 75 | 295 |
var _d = + this.$.find(".Rk-Bins-Head").outerHeight(); |
| 44 | 296 |
this.$.find(".Rk-Bin-Title:visible").each(function() { |
| 26 | 297 |
_d += Rkns.$(this).outerHeight(); |
298 |
}); |
|
| 21 | 299 |
this.$.find(".Rk-Bin-Main").css({ |
300 |
height: this.$.find(".Rk-Bins").height() - _d |
|
301 |
}); |
|
| 163 | 302 |
}; |
| 21 | 303 |
|
| 1 | 304 |
/* Utility functions */ |
305 |
||
306 |
Rkns.Utils = { |
|
307 |
_ID_AUTO_INCREMENT : 0, |
|
308 |
_ID_BASE : (function(_d) { |
|
| 160 | 309 |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
310 |
function pad(n){return n<10 ? '0'+n : n;} |
| 1 | 311 |
function fillrand(n) { |
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
312 |
var _res = ''; |
| 1 | 313 |
for (var i=0; i<n; i++) { |
314 |
_res += Math.floor(16*Math.random()).toString(16); |
|
315 |
} |
|
316 |
return _res; |
|
317 |
} |
|
318 |
return _d.getUTCFullYear() + '-' |
|
319 |
+ pad(_d.getUTCMonth()+1) + '-' |
|
320 |
+ pad(_d.getUTCDate()) + '-' |
|
321 |
+ fillrand(16); |
|
| 160 | 322 |
|
| 1 | 323 |
})(new Date()), |
324 |
getUID : function(_base) { |
|
| 160 | 325 |
|
| 1 | 326 |
var _n = (++this._ID_AUTO_INCREMENT).toString(16), |
327 |
_base = (typeof _base === "undefined" ? "" : _base + "-" ); |
|
328 |
while (_n.length < 4) { |
|
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
329 |
_n = '0' + _n; |
| 1 | 330 |
} |
331 |
return _base + this._ID_BASE + '-' + _n; |
|
| 160 | 332 |
|
| 1 | 333 |
}, |
| 132 | 334 |
getFullURL : function(url) { |
| 160 | 335 |
|
336 |
if(typeof(url) == 'undefined' || url == null ) { |
|
337 |
return ""; |
|
338 |
} |
|
339 |
if(/https?:\/\//.test(url)) { |
|
340 |
return url; |
|
341 |
} |
|
342 |
var img = new Image(); |
|
343 |
img.src = url; |
|
344 |
var res = img.src; |
|
345 |
img.src = null; |
|
346 |
return res; |
|
347 |
|
|
| 132 | 348 |
}, |
| 1 | 349 |
inherit : function(_baseClass, _callbefore) { |
| 160 | 350 |
|
| 163 | 351 |
var _class = function(_arg) { |
| 1 | 352 |
if (typeof _callbefore === "function") { |
353 |
_callbefore.apply(this, Array.prototype.slice.call(arguments, 0)); |
|
354 |
} |
|
| 28 | 355 |
_baseClass.apply(this, Array.prototype.slice.call(arguments, 0)); |
| 163 | 356 |
if (typeof this._init == "function" && !this._initialized) { |
| 28 | 357 |
this._init.apply(this, Array.prototype.slice.call(arguments, 0)); |
| 163 | 358 |
this._initialized = true; |
| 1 | 359 |
} |
|
170
603ffa4c6fa5
correct ";" and "," in javascripts
ymh <ymh.work@gmail.com>
parents:
169
diff
changeset
|
360 |
}; |
| 163 | 361 |
Rkns._(_class.prototype).extend(_baseClass.prototype); |
| 1 | 362 |
return _class; |
| 160 | 363 |
|
| 1 | 364 |
} |
| 163 | 365 |
}; |