No need to convert strings to elements in View.create anymore, since PaperScript handles this already.

This commit is contained in:
Jürg Lehni 2014-07-26 12:07:14 +02:00
parent 0198f4c45f
commit d96368a941

View file

@ -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);