Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding bug fix for Bug 4562. Fix posted by sgarcia.

  • Loading branch information...
commit 65f0d15c41a3bf90b631a695b6d61015be779aba 1 parent fa4a720
julmis authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/editor/htmlarea.php
  2. +2 −2 lib/editor/popups/fullscreen.php
View
4 lib/editor/htmlarea.php
@@ -2085,12 +2085,12 @@ function getMozSelection(txtarea) {
var newObj = new Object;
// check for array objects
- if (obj.constructor.toString().indexOf("function Array(") == 1) {
+ if (obj.constructor.toString().indexOf("function Array(") >= 0) {
newObj = obj.constructor();
}
// check for function objects (as usual, IE is fucked up)
- if (obj.constructor.toString().indexOf("function Function(") == 1) {
+ if (obj.constructor.toString().indexOf("function Function(") >= 0) {
newObj = obj; // just copy reference to it
} else for (var n in obj) {
var node = obj[n];
View
4 lib/editor/popups/fullscreen.php
@@ -74,12 +74,12 @@ function cloneObject(obj) {
var newObj = new Object;
// check for array objects
- if (obj.constructor.toString().indexOf("function Array(") == 1) {
+ if (obj.constructor.toString().indexOf("function Array(") >= 0) {
newObj = obj.constructor();
}
// check for function objects (as usual, IE is fucked up)
- if (obj.constructor.toString().indexOf("function Function(") == 1) {
+ if (obj.constructor.toString().indexOf("function Function(") >= 0) {
newObj = obj; // just copy reference to it
} else for (var n in obj) {
var node = obj[n];
Please sign in to comment.
Something went wrong with that request. Please try again.