alohaeditor/Aloha-Editor — Issue #420: Missing dependency in selection.js?
Author: albinohrn
Created: 2012-02-01 09:33:58+00:00
State: open

Hi All!

First off I am a rookie this require dependency magic :)

But my problem is i can't do Aloha.Selection.changeMarkupOnSelection(markup) in IE8 because an error is thrown on row 541 in selection.js , indexOf() is called on an array. (This is done on several other places in selection.js)

When this is done in other files (dom.js) ecma5shims is used and the arrays is wrapped with $_() before indexOf is called.

I get this problem locally when I use the concatenated aloha.js. But it doesn't appear when in this example http://aloha-editor.org/builds/development/latest/src/demo/boilerplate/

I also tested locally to add a 'aloha/ecma5shims' dependency and wrapped the arrays before calling and that solved my problem.

So is there a missing dependency or am I just doing it wrong?

Have fun!

/albin