mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
No need to convert strings to elements in View.create anymore, since PaperScript handles this already.
This commit is contained in:
parent
0198f4c45f
commit
d96368a941
1 changed files with 0 additions and 4 deletions
|
@ -669,10 +669,6 @@ var View = Base.extend(Callback, /** @lends View# */{
|
|||
_id: 0,
|
||||
|
||||
create: function(project, element) {
|
||||
/*#*/ if (__options.environment == 'browser') {
|
||||
if (typeof element === 'string')
|
||||
element = document.getElementById(element) || element;
|
||||
/*#*/ } // __options.environment == 'browser'
|
||||
// Factory to provide the right View subclass for a given element.
|
||||
// Produces only CanvasViews for now:
|
||||
return new CanvasView(project, element);
|
||||
|
|
Loading…
Reference in a new issue