mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
Use paper- prefix in generated view ids
This commit is contained in:
parent
9de1d4a2f3
commit
ccd92acee7
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ var View = Base.extend(Emitter, /** @lends View# */{
|
|||
// Generate an id for this view / element if it does not have one
|
||||
this._id = element.getAttribute('id');
|
||||
if (this._id == null)
|
||||
element.setAttribute('id', this._id = 'view-' + View._id++);
|
||||
element.setAttribute('id', this._id = 'paper-view-' + View._id++);
|
||||
// Install event handlers
|
||||
DomEvent.add(element, this._viewEvents);
|
||||
// Borrowed from Hammer.js:
|
||||
|
|
Loading…
Reference in a new issue