Forum closed. New forum available at http://community.wymeditor.org/

this._regexes[mode] has no properties

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

this._regexes[mode] has no properties

Postby snz3 on Fri Aug 22, 2008 9:44 am

While trying to initialise wymeditor I was getting this error:
Code: Select all
this._regexes[mode] has no properties

on jquery.wymeditor.js

The error is caused if you defined a variable named undefined as 'undefined' (i.e. var undefined = 'undefined')

The problem was actually on xhtml_parser.js and was caused because the check for this._regexes[mode] is
Code: Select all
if(this._regexes[mode] == undefined) { .. }

instead of
Code: Select all
if(typeof this._regexes[mode] == undefined) { .. }
snz3
 
Posts: 2
Joined: Fri Aug 22, 2008 9:37 am

Re: this._regexes[mode] has no properties

Postby mr_lundis on Mon Sep 01, 2008 2:26 pm

Please post a ticket about this at the Trac site.

http://trac.wymeditor.org/
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden

Re: this._regexes[mode] has no properties

Postby jfh on Sat Sep 06, 2008 12:26 pm

Fixed by r531.
Thanks for the feedback.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests